0

This is ANTLR 3 grammar. How does it convert to ANTLR 4? The carat is a problem?

text_string_no_linebreak:
    text_string -> ^(STRING_NO_LINEBREAK_TOKEN text_string)
;

no viable alternative at character '^'

Here's another one that gives the same error:

create_index: // For external use only. Don't reference this in the normal grammar.
    CREATE_SYMBOL^ create_index_tail SEMICOLON_SYMBOL? EOF
;
nicomp
  • 4,344
  • 4
  • 27
  • 60

0 Answers0