1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
class Testp convert A '2' B '3' end prechigh left B preclow rule /* comment */ target: A B C nonterminal { action "string" == /regexp/o 1 /= 3 } ; # comment nonterminal: A '+' B = A; /* end */ end ---- driver # driver is old name