Join GitHub today
Sharing rules between grammars? #197
I have a few grammars for related formats / languages that share some common rules. Is there a way to readily share rules between separate grammar files?
It wouldn't make sense to just have a single big grammar file.
Of course. The necessary grammar should be added to meta. Probably something like
Then this should be somehow integrated into the parser and validator in the