in reply to Block-structured language parsing using a Perl module?
I don't know how you'd qualify a "full-featured, block-structured language", but I've used Parse::RecDescent to write a parser for OWL Functional Syntax which is a language that has identifiers and structures which nest to arbitrary depths. (Here's an example.)
The grammar is in RDF::Trine::Parser::OwlFn::Grammar; a pre-compiled version of the grammar (compiled by Parse::RecDescent) is at RDF::Trine::Parser::OwlFn::Compiled; the class RDF::Trine::Parser::OwlFn provides the end-user API for it.
Also of interest might be CSS::Parse::Heavy/CSS::Parse::Compiled.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Block-structured language parsing using a Perl module?
by BrowserUk (Patriarch) on Aug 18, 2012 at 18:33 UTC |