Grammar with multiple entry points (start rules)

Nov 10, 2014 at 11:21 AM
Hi, everybody
I have several closely related grammars with common lexer rules.
I want merge their. How I can do this?
For example, I would like manually set up parser state in required state and begin parse from this specified state. Is this possible? Could you provide any examples for this?
Nov 10, 2014 at 11:28 AM
I found some examples with pseudo start-symbols like this
and this
but I think that use tokens for switch the start rule not very good solution.