Has a grammar for treetop (in treetop) been developed? It sure would
be interesting to see treetop become self-hosting.
Scott
I can't vouch for that, but the grammar I'm developing for my
Constellation
Query Language is impossible with conventional parser generators because
of the need for unlimited lookahead. It's part of the ActiveFacts
project, see
the treetop modules (these all get composed as one grammar) under
<http://activefacts.rubyforge.org/svn/lib/activefacts/cql/>.
Some examples of CQL (merely data definitions, not fact derivations -
queries)
are here: <http://activefacts.rubyforge.org/svn/examples/CQL/>. These
CQL
files are generated from the Object Role Models in the adjacent norma
and
images directories, and the generated Ruby model code is there also.
> Has a grammar for treetop (in treetop) been developed? It sure would
> be interesting to see treetop become self-hosting.
It always was (after the initial bootstrap) and still is, see
<http://github.com/nathansobo/treetop/tree/master/lib/treetop/compiler/metagrammar.treetop
>
Clifford Heath.
I'm doing a complete parser for SIP protocol. It's 99% done (RFC 3261 is 100%
complete but I need to implement other RFC's related to SIP protocol).
Of course I use Treetop and have created the grammar based on the ABNF grammar
of SIP. It's 100% accurate and precise.
It's not a public project still since I must develop more SIP stack.
Regards.
--
Iñaki Baz Castillo