Hi, I have a string matching rule like this:
string_lit : STRING ;
STRING : ‘’’ ( ~’’’ | ‘\’’ )* ‘’’;
I’d like to get the contents of the string without the quotes. How can I do this with ANTLR4?
Hi, I have a string matching rule like this:
string_lit : STRING ;
STRING : ‘’’ ( ~’’’ | ‘\’’ )* ‘’’;
I’d like to get the contents of the string without the quotes. How can I do this with ANTLR4?
Hi Reinout. This can be done in different ways.
Hope this helps