Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • I would need to see more of the grammar and the calling code in order to answer this question. Commented Sep 17, 2013 at 0:28
  • You might want to look into ANTLR4's support for lexical modes, and try to trigger that switching mechanism from your code. I believe the feature was intended to support situations such as embedding PHP inside HTML. Commented Sep 23, 2013 at 20:37