ref: 487c2a6e18f22dbd8a43aa150db10b19529848eb
dir: /examples/rule.leg/
start = abcd+ abcd = 'a' { printf("A %d\n", yypos); } bc { printf("ABC %d\n", yypos); } | 'b' { printf("B %d\n", yypos); } cd { printf("BCD %d\n", yypos); }; bc = 'b' { printf("B %d\n", yypos); } 'c' { printf("C %d\n", yypos); }; cd = 'c' { printf("C %d\n", yypos); } 'd' { printf("D %d\n", yypos); };