Skip to content

Separate rules in different EmbeddedActionsParser #1733

Answered by bd82
sveri asked this question in Q&A
Discussion options

You must be logged in to vote

It would probably be easier to split up the code that defines the rules into multiple files and invoke the multiple rule definitions helpers
during a single parser's constructor.

See example in a large productive parser (Java)

This approach is made possible because Chevrotain is "just JavaScript" so you have a-lot of flexibility in how you mix/match/assemble it.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@sveri
Comment options

@bd82
Comment options

@sveri
Comment options

Answer selected by sveri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants