-
Notifications
You must be signed in to change notification settings - Fork 450
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
How to include parser in angular project #382
Comments
@mluis jison currently only supports commonjs/amd module or global variable. listed here https://github.com/zaach/jison#usage-from-the-command-line.
at the bottom of file. |
When trying to import either a generated parser or jison itself in an Angular 7 project I get errors about the lack of node modules fs and path: Module not found: Error: Can't resolve 'fs' I can get the generated parser to work by removing the two lines referencing fs and path, but there must be a better way, especially so that one could use the jison npm package. |
You can use the option
It will generate the parser without those lines. Be careful with the lexer —if you are using a custom one— and custom functionality that you pass through the 'yy' object.
|
After a successful generated parser one might not need jison to be included in a project for parsers generation. My question is how to include the generated parser in a project like angular, for example ?
BR
The text was updated successfully, but these errors were encountered: