| Refresh | Home EGTry.com

root rewrite


root rewrite

prog: child ';'^ child
  ;

child: ID OP ID ID -> ^(OP ID ID ID);
OP: 'are' | 'am';
ID: ('a' .. 'z' | 'A' .. 'Z')+;
WS: (' '|'\r'|'\n') {$channel=HIDDEN;};


input

you are very good; I am fairly good



output tree