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

Customise the lexer, parser, and code generator of a CatspeakEnvironment #108

Closed
katsaii opened this issue Oct 22, 2023 · 0 comments · Fixed by #114
Closed

Customise the lexer, parser, and code generator of a CatspeakEnvironment #108

katsaii opened this issue Oct 22, 2023 · 0 comments · Fixed by #114
Assignees
Labels
enhancement New feature or request high priority Important

Comments

@katsaii
Copy link
Owner

katsaii commented Oct 22, 2023

What is your feature request?

More control over how Catspeak is consumed at a top-level through the convenience of CatspeakEnvironment.

Please describe in detail how you expect this new feature to behave.

Custom methods or public fields on CatspeakEnvironment to change the lexer, parser, and environment. Might look something like:

Catspeak.lexer = GMLLexer;
Catspeak.parser = GMLParser;

Then calling Catspeak.parseString will tokenise the string using GMLLexer and then pass those tokens on to GMLParser to consume.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request high priority Important
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant