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

Pass command line options to underlying lexer. #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Pass command line options to underlying lexer. #15

wants to merge 1 commit into from

Conversation

natewallace
Copy link

The jison-lex command line app isn't generating commonjs compatible code. I tried specifying the module-type option in the command line:

jison-lex calculator.lex -t commonjs

However I still get generated code that isn't commonjs compatible. Looking at the jison-lex code it appears the opts object wasn't being passed to the processGrammar function which is why this option was being ignored. This pull request contains a fix for the issue.

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

Successfully merging this pull request may close these issues.

1 participant