0

I'm parsing a fairly simple language but my grammar is already becoming unwieldy in a single file. Is there any way to split it up into multiple files?

ahelwer
  • 1,441
  • 13
  • 29

1 Answers1

1

Yes, grammar files are evaluated with Node.js, so you can use the require function to split up grammars into files however you see fit.

maxbrunsfeld
  • 341
  • 2
  • 2