diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-03-08 22:36:30 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-03-08 22:36:30 +0000 |
commit | 81d867050a6cadfec251cfdfd6a537281c0f3eac (patch) | |
tree | 65dafb52ba178f1bc107d808ab949063c07391da /perly.c | |
parent | e49e380eaec0ac30de05f118388e614b3b7bbed9 (diff) | |
download | perl-81d867050a6cadfec251cfdfd6a537281c0f3eac.tar.gz |
Further MAD changes.
p4raw-id: //depot/perl@27428
Diffstat (limited to 'perly.c')
-rw-r--r-- | perly.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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); |