@mike-lischke/antlr-tgen
Version:
A generator for antlr-ng runtime test cases
47 lines (34 loc) • 432 B
Plain Text
["$ctx"):writeln()>
}
: '${' v '}'
;
v : A
| B
;
A : 'a' ;
B : 'b' ;
WHITESPACE : [ \n\t\r]+ -> channel(HIDDEN) ;
ERROR : . ;
[ ]
s
[ ]
${ ? a ?}
[ ]
"""(s ${ (v ? a) ? })
"""
[ ]
line 1:3 extraneous input '?' expecting {'a', 'b'}
line 1:7 extraneous input '?' expecting '}'
[ ]
Cpp
Go
PHP
]
Parser
[ ]
grammar T;
s
@init {
<BuildParseTrees()>
}
@after {
<ToStringTree(