In below, since the root is expr, and since one of expr's variants, symbol, is a group, it cause the root to be a generated node. Causing issues, since we can't visit a generated node. Needs research. Likely in the AstConverter.
kanonic: {
name: ion;
root: expr;
package: "io.johnedquinn.ion.generated";
};
COLON: ":";
PAREN_LEFT: "\(";
PAREN_RIGHT: "\)";
SYMBOL_QUOTED: "'((\')|[^'])*'";
SYMBOL: "[a-zA-Z]+";
NUMBER: "[0-9]+";
LITERAL_STRING: "\"((\")|[^\"])*\"";
expr
: annotation? expr --> annotated_expr
| NUMBER --> number
| PAREN_LEFT expr+ PAREN_RIGHT --> sexp
| ( SYMBOL | SYMBOL_QUOTED ) --> symbol
| LITERAL_STRING --> string
;
In below, since the root is
expr, and since one ofexpr'svariants,symbol, is a group, it cause the root to be a generated node. Causing issues, since we can't visit a generated node. Needs research. Likely in the AstConverter.