diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-23 16:10:07 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-23 16:10:07 +0300 |
commit | 6e8ad128fe65ae8803e3e92c383256ae6afca02e (patch) | |
tree | ea6166df7bc788027ecdbb101ddafd1537d405c5 /tests/gcffmt.c | |
parent | 63da417be1dfe1366a4a8984770c06cbbadcda39 (diff) | |
download | grecs-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.c | 4 |
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 { |