Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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