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

Don't generate dead code #215

Open
mjambon opened this issue Jun 17, 2021 · 0 comments
Open

Don't generate dead code #215

mjambon opened this issue Jun 17, 2021 · 0 comments
Labels
enhancement New feature or request priority:medium to do, not blocking users r2c user not originally reported by an external user

Comments

@mjambon
Copy link
Member

mjambon commented Jun 17, 2021

This is a follow-up to #210. We now extract fewer rules for token() constructs, but it looks like the generated files Boilerplate.ml and CST.ml still contain code for those as if they had been extracted and given a rule name. I'll look into this. It would be best to not generate code that's not used. OCaml can report it depending on the flags passed to the compiler; that's how I noticed but too late.

@mjambon mjambon added enhancement New feature or request priority:medium to do, not blocking users r2c user not originally reported by an external user labels Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority:medium to do, not blocking users r2c user not originally reported by an external user
Development

No branches or pull requests

1 participant