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

Is it possible to parse multiple peg files for use in the same package? #63

Open
gbellary opened this issue Feb 21, 2017 · 3 comments
Open

Comments

@gbellary
Copy link

This works beautifully when I specify a single peg file like so:
./peg -inline -switch peg.peg

When I try to include multiple peg.go files in a package however, I end up with some previous declaration errors for constants, rules, and methods.
Do you have a workaround for this?

@mccolljr
Copy link

mccolljr commented Feb 21, 2017 via email

@gbellary
Copy link
Author

I need to use multiple grammars on each string that I am parsing.
It works if I generate code into a different package for each grammar and then import each package into my project, I was just wondering if there was a more elegant solution

@pointlander
Copy link
Owner

pointlander commented Feb 23, 2017 via email

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

3 participants