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

Getting first set for nonterminals? #22

Open
remexre opened this issue Nov 16, 2017 · 1 comment
Open

Getting first set for nonterminals? #22

remexre opened this issue Nov 16, 2017 · 1 comment

Comments

@remexre
Copy link
Member

remexre commented Nov 16, 2017

If I wanted to have Copper send Silver back the first set for every nonterminal, what would be the place to start? I want this for melt-umn/silver#205, so nonterminals can be included in "alias groups."

@schwerdf
Copy link
Contributor

Copper does not make that information obtainable through the API, since that would seriously hamstring the possibility of developing alternative parser compilation pipelines.

Currently, if run at the VERY_VERBOSE or -vv level, Copper logs context sets for all the symbols in a grammar. I think it would also be possible to include the context sets in the XML-format dump, if that would help.

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

2 participants