summaryrefslogtreecommitdiff
path: root/test/YACC
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-10-14 16:23:52 +0000
committerSteven Knight <knight@baldmt.com>2005-10-14 16:23:52 +0000
commitaf962864b108d8fdd654edaf3c0300404ca07e3e (patch)
tree3a6877e15644a6da25570af9ee7aade000983ad4 /test/YACC
parent82c2f16e53cba1a639d568fe8d6780dfe30c56ab (diff)
downloadscons-af962864b108d8fdd654edaf3c0300404ca07e3e.tar.gz
Get rid of indentation tabs in the test scripts and have runtest.py invoke them with the python -tt option to keep them out.
Diffstat (limited to 'test/YACC')
-rw-r--r--test/YACC/YACC.py18
-rw-r--r--test/YACC/YACCFLAGS.py10
2 files changed, 14 insertions, 14 deletions
diff --git a/test/YACC/YACC.py b/test/YACC/YACC.py
index 062e4bcb..9be19347 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';
"""
diff --git a/test/YACC/YACCFLAGS.py b/test/YACC/YACCFLAGS.py
index 022b2383..2779597a 100644
--- a/test/YACC/YACCFLAGS.py
+++ b/test/YACC/YACCFLAGS.py
@@ -70,10 +70,10 @@ test.write('aaa.y', r"""
int
main(int argc, char *argv[])
{
- argv[argc++] = "--";
- printf("YACCFLAGS\n");
- printf("aaa.y\n");
- exit (0);
+ argv[argc++] = "--";
+ printf("YACCFLAGS\n");
+ printf("aaa.y\n");
+ exit (0);
}
""")
@@ -119,7 +119,7 @@ yylex()
}
%%}
%%%%
-input: letter newline { printf("%s\n"); };
+input: letter newline { printf("%s\n"); };
letter: 'a' | 'b';
newline: '\n';
"""