Closed katsaii closed 9 months ago
More control over how Catspeak is consumed at a top-level through the convenience of CatspeakEnvironment.
CatspeakEnvironment
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.
Catspeak.parseString
GMLLexer
GMLParser
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:Then calling
Catspeak.parseString
will tokenise the string usingGMLLexer
and then pass those tokens on toGMLParser
to consume.