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

Decouple HaRP transformation from XML transformation. #3

Open
niklasbroberg opened this issue Nov 10, 2014 · 0 comments
Open

Decouple HaRP transformation from XML transformation. #3

niklasbroberg opened this issue Nov 10, 2014 · 0 comments

Comments

@niklasbroberg
Copy link
Contributor

There is a clear dependency between regular patterns, where XmlSyntax transforms into RegularPatterns which in turn transforms into vanilla Haskell. It would simplify the code greatly (in particular that for transforming away XmlSyntax in expressions) if these transformations were done in two separate passes.

Note that XmlSyntax only depends on RegularPatterns in practice if pattern matching over XML is used. For real-world uses of XmlSyntax, this is only very rarely the case. We could thus consider a more fine-grained model, where XmlSyntax enables XML expressions, and a new extension XmlPatterns (which depends on/implies both RegularPatterns and XmlSyntax) handles the pattern side.

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