[type]
Parser

[grammar]
grammar T;
myset: ('b'|'c') ;
a: 'a' myset 'd' {<writeln(Append("\"\"","$myset.stop"))>} ; <! bit complicated because of the JavaScript target !>

[start]
a

[input]
ad

[output]
"""[@0,0:0='a',<3>,1:0]
"""

[errors]
"""line 1:1 missing {'b', 'c'} at 'd'
"""

