Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML Parser enhancement #8

Open
thi4go opened this issue Apr 2, 2018 · 0 comments
Open

XML Parser enhancement #8

thi4go opened this issue Apr 2, 2018 · 0 comments

Comments

@thi4go
Copy link
Member

thi4go commented Apr 2, 2018

The featureIDE eclipse plugin can generate some header / footers that doesn't interest us, as we want only what's within and , for the time being.

Right now, we parse those extra lines with the parseHeader and parseFooter options, which parse literal strings.

Problem: the parser fails when the header/footer has more options generated from the plugin than what we put on our literal strings while parsing.

Solution: manage those variabilities on parseHeader and parseFooter methods, so that the parser doesn't break. Possibly using a parser combinator to handle error, or to literally ignore strings.

https://hackage.haskell.org/package/parsec-3.1.13.0/docs/Text-Parsec.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant