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

add CLI + API option to enable/disable/pick-a-mode for (action) code snippets' validation #26

Open
GerHobbelt opened this issue Oct 30, 2017 · 2 comments

Comments

@GerHobbelt
Copy link
Owner

I.e. add ability to manipulate the jison-helpers-lib::checkActionBlock() behaviour.

Currently all code blocks MUST pass JavaScript validation performed by that API through using esprima/recast, but several examples exist which showcase grammars with admittedly non-working, non-compiling code and we don't want to bother about that.

Food For Thought

The other, more sensible?, use case is when you create parsers/lexers and code your action blocks and/or other code sections in there in another language that compiles to JavaScript, say TypeScript. Currently jison does NOT support that mode of usage; it MAY be useful to provide a pre-compile/pre-process plugin interface for said API so that a user-determined and user-specified toolchain CAN be applied to every chunk of code and thus help produce a validated parser/lexer instance or sourcecode. 🎉

@GerHobbelt
Copy link
Owner Author

Related to #17

GerHobbelt added a commit that referenced this issue Nov 9, 2017
…ippets and other code blocks. We don't want to do them all, so there's #26
@GerHobbelt
Copy link
Owner Author

Related: #46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant