summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorVern Paxson <vern@ee.lbl.gov>1995-03-05 20:37:32 +0000
committerVern Paxson <vern@ee.lbl.gov>1995-03-05 20:37:32 +0000
commitaeb239128895735e59f94d37690f67341ebcde27 (patch)
tree65991e491bb25a82d927cf3fc78c56fae656baaa /parse.y
parent6534e3e967a4478c79b3622140a55b0d1c27b1b8 (diff)
downloadflex-git-aeb239128895735e59f94d37690f67341ebcde27.tar.gz
added %option yyclass
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 71bfb9d..93a57b2 100644
--- a/parse.y
+++ b/parse.y
@@ -1,7 +1,7 @@
/* parse.y - parser for flex input */
%token CHAR NUMBER SECTEND SCDECL XSCDECL NAME PREVCCL EOF_OP
-%token OPTION_OP OPT_OUTFILE OPT_PREFIX
+%token OPTION_OP OPT_OUTFILE OPT_PREFIX OPT_YYCLASS
%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
@@ -185,6 +185,8 @@ option : OPT_OUTFILE '=' NAME
}
| OPT_PREFIX '=' NAME
{ prefix = copy_string( nmstr ); }
+ | OPT_YYCLASS '=' NAME
+ { yyclass = copy_string( nmstr ); }
;
sect2 : sect2 scon initforrule flexrule '\n'