-
Notifications
You must be signed in to change notification settings - Fork 120
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
Comments
Could you elaborate on what the use case is for having the grammars
generate code into the same package?
…On Feb 21, 2017 5:45 PM, "Gautam Bellary" ***@***.***> wrote:
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?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#63>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIJHqCqErfzgaSvYR4VC0sQlkOSEbZbKks5re2kWgaJpZM4MH94D>
.
|
I need to use multiple grammars on each string that I am parsing. |
I could add a -prefix option...
…On Tue, Feb 21, 2017 at 5:57 PM, Gautam Bellary ***@***.***> wrote:
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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#63 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAPZFAugnxmqNwv4oBGvVjZMSjhr0OE-ks5re4flgaJpZM4MH94D>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?
The text was updated successfully, but these errors were encountered: