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

Generate lexer/parser in different programming language #46

Open
GerHobbelt opened this issue Jun 11, 2019 · 0 comments
Open

Generate lexer/parser in different programming language #46

GerHobbelt opened this issue Jun 11, 2019 · 0 comments

Comments

@GerHobbelt
Copy link
Owner

Output, for example, code in TypeScript. Or maybe even C. 😄

Way to do this as a general solution: output the lexer and parser tables, plus user action code chunks, as an object/JSON file, which can be picked up by a simple postprocessor/template engine, which can then generate said lexer/parser in the user's choice of language.

The alternative is going back to bison and learning M4... 😒

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