Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Writing a parser

by eduardo (Curate)
on Apr 24, 2003 at 20:09 UTC ( #252988=note: print w/replies, xml ) Need Help??

in reply to Writing a parser

I have written a parser or two. I have a few suggestions if you plan on writing your own parser.
  1. Prepare to devote the next few months if you plan to write a real, generalized, marginally useful parser. This is hard.
  2. Buy This book. Ingest all of it. Then, you are ready to write a useful parser.
Now, if you plan on writing a simple method to "parse files for your research", get our fellow monk davorg's book Data Munging with Perl. You won't really leave with the knowledge required to chose between LR and Recursive descent parsing depending on the Chomsky's hierarchy level of your grammar... but you will probably be able to do something quite useful. If you are planning on parsing, you shouldn't dismiss Parse::RecDescent so quickly as overkill, it's pretty sweet. And, with the advent of Perl 6, it will pretty much be "in core"...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2020-05-29 18:04 GMT
Find Nodes?
    Voting Booth?
    If programming languages were movie genres, Perl would be:

    Results (170 votes). Check out past polls.