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

Provide a way of generating non-pub parsers #4

Open
osa1 opened this issue Jul 24, 2022 · 0 comments
Open

Provide a way of generating non-pub parsers #4

osa1 opened this issue Jul 24, 2022 · 0 comments

Comments

@osa1
Copy link
Owner

osa1 commented Jul 24, 2022

Currently we generate structs for pub non-terminals, with a parse method. These structs are currently always pub. So if I define a grammar in an internal module and define a parser in the same module, I get a compile error because the parser is pub but its interface uses a non-pub type (the parse tree).

We should mark entry points of grammars with another symbol and use pub to make the generated parsers structs pub.

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