summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authormillaway <millaway>2002-08-16 22:32:02 +0000
committermillaway <millaway>2002-08-16 22:32:02 +0000
commit871c02ac63c05640184ea482446a7da65a7e184b (patch)
tree8eb307ec83a1b325648a331b308c1570f7705a3b /parse.y
parent728bec05b43762fd09b50bf4155fcaea35a5703c (diff)
downloadflex-871c02ac63c05640184ea482446a7da65a7e184b.tar.gz
Added --tables option.
Omitted tables code from generated scanner when unused.
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 145d8dd..94a7075 100644
--- a/parse.y
+++ b/parse.y
@@ -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'