aboutsummaryrefslogtreecommitdiff
path: root/tests/gcffmt.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-05-23 16:10:07 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-05-23 16:10:07 +0300
commit6e8ad128fe65ae8803e3e92c383256ae6afca02e (patch)
treeea6166df7bc788027ecdbb101ddafd1537d405c5 /tests/gcffmt.c
parent63da417be1dfe1366a4a8984770c06cbbadcda39 (diff)
downloadgrecs-6e8ad128fe65ae8803e3e92c383256ae6afca02e.tar.gz
grecs-6e8ad128fe65ae8803e3e92c383256ae6afca02e.tar.bz2
Fix handling of C comments in bind and grecs lexers.
* src/bind-lex.l: Fix unquoted string rule. * src/grecs-lex.l: Likewise. * tests/bind00.at: Update. * tests/grecs00.at: New testcase. * tests/Makefile.am: Add new testcases. * tests/testsuite.at: Likewise. * tests/gcffmt.c (main): New options -x and -X.
Diffstat (limited to 'tests/gcffmt.c')
-rw-r--r--tests/gcffmt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/gcffmt.c b/tests/gcffmt.c
index 7e1aa4e..0027252 100644
--- a/tests/gcffmt.c
+++ b/tests/gcffmt.c
@@ -74,6 +74,10 @@ main(int argc, char **argv)
grecs_preproc_add_include_dir(arg+2);
else if (strncmp(arg, "-include=", 9) == 0)
grecs_preproc_add_include_dir(arg+9);
+ else if (strcmp(arg, "-x") == 0)
+ grecs_gram_trace(1);
+ else if (strcmp(arg, "-X") == 0)
+ grecs_lex_trace(1);
else if (arg[0] == '-')
usage(progname, stderr, 1);
else {

Return to:

Send suggestions and report system problems to the System administrator.