summaryrefslogtreecommitdiff
path: root/parser.h
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2007-05-05 00:49:51 +0000
committerDave Mitchell <davem@fdisolutions.com>2007-05-05 00:49:51 +0000
commitfb205e7a8791bda7ee1f6f939d96b947f4eb160c (patch)
tree69226d3ccfe161c0d9e8b525fa590e24ec3fb4c0 /parser.h
parentf06b58485d86282d0dbf47ffb2a797860a8346a7 (diff)
downloadperl-fb205e7a8791bda7ee1f6f939d96b947f4eb160c.tar.gz
migrate more variables to PL_parser struct:
PL_nexttoke PL_curforce PL_nextval PL_nexttype p4raw-id: //depot/perl@31148
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/parser.h b/parser.h
index 2dfcfa7d42..b9f4ddae9d 100644
--- a/parser.h
+++ b/parser.h
@@ -83,7 +83,16 @@ typedef struct yy_parser {
SV *thisstuff;
SV *thistoken;
SV *thiswhite;
+
+/* What we know when we're in LEX_KNOWNEXT state. */
+ NEXTTOKE nexttoke[5]; /* value of next token, if any */
+ I32 curforce;
+#else
+ YYSTYPE nextval[5]; /* value of next token, if any */
+ I32 nexttype[5]; /* type of next token */
+ I32 nexttoke;
#endif
+
} yy_parser;