Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^4: How does perl's lexer and parser cooperate?

by PerlOnTheWay (Scribe)
on Dec 26, 2012 at 16:12 UTC ( #1010400=note: print w/ replies, xml ) Need Help??


in reply to Re^3: How does perl's lexer and parser cooperate?
in thread How does perl's lexer and parser cooperate?

Got it, thanks again!

But I've got another doubt, what's the difference between ival&i_tkval, pval&p_tkval in YYSTYPE?

update

I've just checked other symbols like GRAMBLOCK,

it should be parsed by Perl_parse_block in toke.c, which is called as parse_block ,

but the strange thing is : they're never ever called from anywhere.

so when will yyparse got token GRAMBLOCK from yylex ?


Comment on Re^4: How does perl's lexer and parser cooperate?
Select or Download Code
Re^5: How does perl's lexer and parser cooperate?
by dave_the_m (Parson) on Dec 27, 2012 at 19:10 UTC
    what's the difference between ival&i_tkval, pval&p_tkval
    Not a lot. It's basically a hack to make perly.y function both normally and under -Dmad.
    they're never ever called from anywhere
    GRAMBLOCK etc are part of recently added parsing API. They're not called by normal perl parsing, only if someone directly calls one of the API functions such as parse_block().

    Dave.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010400]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (14)
As of 2014-11-26 19:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (172 votes), past polls