Relative Content

Tag Archive for c++antlr

Parse Continuation Lines in ANTLR

I am writing a parser in ANTLR using C# for a language which allows a line of syntax to be split over multiple lines using the back slash to indicate there are subsequent lines. This is further complication by the ability to add a comment to any line of code. e.g I can write something like