diff options
Diffstat (limited to 'test/YACC/YACC.py')
-rw-r--r-- | test/YACC/YACC.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/YACC/YACC.py b/test/YACC/YACC.py index 062e4bc..9be1934 100644 --- a/test/YACC/YACC.py +++ b/test/YACC/YACC.py @@ -73,10 +73,10 @@ test.write('aaa.y', r""" int main(int argc, char *argv[]) { - argv[argc++] = "--"; - printf("YACC\n"); - printf("aaa.y\n"); - exit (0); + argv[argc++] = "--"; + printf("YACC\n"); + printf("aaa.y\n"); + exit (0); } """) @@ -84,10 +84,10 @@ test.write('bbb.yacc', r""" int main(int argc, char *argv[]) { - argv[argc++] = "--"; - printf("YACC\n"); - printf("bbb.yacc\n"); - exit (0); + argv[argc++] = "--"; + printf("YACC\n"); + printf("bbb.yacc\n"); + exit (0); } """) @@ -146,7 +146,7 @@ yylex() } %%} %%%% -input: letter newline { printf("%s\n"); }; +input: letter newline { printf("%s\n"); }; letter: 'a' | 'b'; newline: '\n'; """ |