Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^12: Block-structured language parsing using a Perl module?

by BrowserUk (Pope)
on Jul 20, 2013 at 21:12 UTC ( #1045471=note: print w/replies, xml ) Need Help??

in reply to Re^11: Block-structured language parsing using a Perl module?
in thread Block-structured language parsing using a Perl module?

I don't know if you've been following Marpa::R2, but they've been going in the direction of putting tokenizer rules in the grammar, and it looks rather good.

No, I haven't. From my brief interactions with the author I had no expectation that Marpa would ever change in any way that would cause me to reconsider it.

From a cursory scan of the R2 docs it does seem that somewhere amongst the close to 2 dozen modules that make it up there might be something that starts to look like it might do the job. But, it is really hard to tell given that the two examples are:

  • an expression parser that uses about the same number of source lines as I did for my 6 function/3 precedence level expression parser -- on top of those 2 dozens modules -- to provide a 2 function/1 precedence level expression parser.
  • The other deals with one of those completely pointless, meaningless, "languages" that does absolutely nothing, that parser theorists are so enamored of.

If I ever find a working example of a block-structured language done using Marpa, I might look again; but I won't hold my breath.

Unfortunately, the documentation doesn't seem to have improved. It still spends an inordinate amount of time telling me haw clever the parser is; and almost none showing me how to use it to do something realistic and useful.

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^12: Block-structured language parsing using a Perl module?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1045471]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2018-06-24 21:00 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.