Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Perl not BNF-able??

by dave_the_m (Monsignor)
on Jul 01, 2005 at 12:30 UTC ( [id://471685]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl not BNF-able??
in thread Perl not BNF-able??

A little warning. The yacc parser config in perl (perly.y) is 763 lines long, while the lexer (toke.c) is 10998 lines long. That should be a clue as to how much special-case code perl needs that the parser can't handle itself.

Dave.

Replies are listed 'Best First'.
Re^4: Perl not BNF-able??
by chromatic (Archbishop) on Jul 01, 2005 at 16:42 UTC

    I was in a conversation the other day where Larry said that the reason he did that was to be able to say that Perl 5 had a smaller parser than did Perl 4. Now that he's refactoring the tokenizer, I think he regrets that choice somewhat.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (1)
As of 2024-04-25 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found