summaryrefslogtreecommitdiff
path: root/perly.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-03-08 22:36:30 +0000
committerNicholas Clark <nick@ccl4.org>2006-03-08 22:36:30 +0000
commit81d867050a6cadfec251cfdfd6a537281c0f3eac (patch)
tree65dafb52ba178f1bc107d808ab949063c07391da /perly.c
parente49e380eaec0ac30de05f118388e614b3b7bbed9 (diff)
downloadperl-81d867050a6cadfec251cfdfd6a537281c0f3eac.tar.gz
Further MAD changes.
p4raw-id: //depot/perl@27428
Diffstat (limited to 'perly.c')
-rw-r--r--perly.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/perly.c b/perly.c
index c4941563c7..18f8606bff 100644
--- a/perly.c
+++ b/perly.c
@@ -296,6 +296,11 @@ Perl_yyparse (pTHX)
rule. */
int yylen;
+#ifdef PERL_MAD
+ if (PL_madskills)
+ return madparse();
+#endif
+
YYDPRINTF ((Perl_debug_log, "Starting parse\n"));
ENTER; /* force stack free before we return */
@@ -403,7 +408,11 @@ Perl_yyparse (pTHX)
/* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
if (yychar == YYEMPTY) {
YYDPRINTF ((Perl_debug_log, "Reading a token: "));
+#ifdef PERL_MAD
+ yychar = PL_madskills ? madlex() : yylex();
+#else
yychar = yylex();
+#endif
# ifdef EBCDIC
if (yychar >= 0 && yychar < 255) {
yychar = NATIVE_TO_ASCII(yychar);