diff options
author | millaway <millaway> | 2002-08-16 22:32:02 +0000 |
---|---|---|
committer | millaway <millaway> | 2002-08-16 22:32:02 +0000 |
commit | 871c02ac63c05640184ea482446a7da65a7e184b (patch) | |
tree | 8eb307ec83a1b325648a331b308c1570f7705a3b /parse.y | |
parent | 728bec05b43762fd09b50bf4155fcaea35a5703c (diff) | |
download | flex-871c02ac63c05640184ea482446a7da65a7e184b.tar.gz |
Added --tables option.
Omitted tables code from generated scanner when unused.
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2,6 +2,7 @@ %token CHAR NUMBER SECTEND SCDECL XSCDECL NAME PREVCCL EOF_OP %token OPTION_OP OPT_OUTFILE OPT_PREFIX OPT_YYCLASS OPT_HEADER +%token OPT_TABLES %token CCE_ALNUM CCE_ALPHA CCE_BLANK CCE_CNTRL CCE_DIGIT CCE_GRAPH %token CCE_LOWER CCE_PRINT CCE_PUNCT CCE_SPACE CCE_UPPER CCE_XDIGIT @@ -217,6 +218,8 @@ option : OPT_OUTFILE '=' NAME { yyclass = copy_string( nmstr ); } | OPT_HEADER '=' NAME { headerfilename = copy_string( nmstr ); } + | OPT_TABLES '=' NAME + { tablesext = true; tablesfilename = copy_string( nmstr ); } ; sect2 : sect2 scon initforrule flexrule '\n' |