Looking for a parser generator

E

Edgardo Hames

Hi all,

I'm looking for a nice parser generator which given an EBNF grammar
can build an AST and Rockit seems a very good option. However, I keep
getting errors when trying to run the examples on Ruby 1.8. I've also
seen some other people complaining on the list because they run into
similar problems. Is this project dead? What other options can I
choose from?

Thanks,
Ed
--
Encontr=E1 a "Tu psic=F3pata favorito" http://tuxmaniac.blogspot.com
=09
Thou shalt study thy libraries and strive not to reinvent them without caus=
e,
that thy code may be short and readable and thy days pleasant and productiv=
e.
-- Seventh commandment for C programmers
 
R

Rutger Nijlunsing

Hi all,

I'm looking for a nice parser generator which given an EBNF grammar
can build an AST and Rockit seems a very good option. However, I keep
getting errors when trying to run the examples on Ruby 1.8. I've also
seen some other people complaining on the list because they run into
similar problems. Is this project dead? What other options can I
choose from?

racc: nice and simple, runtime included in default Ruby distribution
(...though not the generator itself).

http://i.loveruby.net/en/man/racc/grammar.html appears to have a
tutorial.

Download http://www.wingding.demon.nl/ -> Rpay2 for an example for
actual usage.
 
M

Mark Probert

I'm looking for a nice parser generator which given an EBNF grammar
can build an AST and Rockit seems a very good option.
Depending on what you are after, the EBNF and attributes, one of
the Coco/R tools may be suitable. There are two, one pure Ruby and
the other for C extensions. Note that they are both LL(1) with
single token look-ahead, so that may, or may not, suit your
style.

Regards,

-mark.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top