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
;
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) ;
so this:| {!SQL_MODE_ACTIVE(SQL_MODE_NO_BACKSLASH_ESCAPES)}? => ESCAPE_OPERATOR . { escape_count++; }
becomes this?
| {!SQL_MODE_ACTIVE(SQL_MODE_NO_BACKSLASH_ESCAPES)}