craigmjohnston / grunsharp

C# implementation of grun, the ANTLR grammar test rig. Not being actively worked on right now.
MIT License
6 stars 4 forks source link

Optionally parse a section of a file, instead of the whole thing #2

Open craigmjohnston opened 6 years ago

craigmjohnston commented 6 years ago

It sometimes takes ages to parse/walk a really big file, and you might only be interested in one section (for debugging, etc.).

At the moment you can just make a new file with only that section in it, but it would be a handy shortcut if you could do something like:

grunsharp [grammar] [rule] --start=10 --end=14 [file]