Rockit

N

nornagon

Hiya. I've been looking all over for a decent ruby parser/lexer
generator, and when I found rockit, I thought my search was over.

No such luck. The version downloadable from sourceforge.net fails to
bootstrap correctly, as described in the SF bugtracker. Also, since
ruby 1.8, many things have been deprecated. For example, Object#id has
become Object#object_id, and Object#type has become Object#class.

I tried the CVS version. It also failed to bootstrap correctly.
However, as it came with the rockit_grammars_parser.rb file, I tried
it with that. Nothing worked still:

$ ruby calculator.rb
calculator.rb:28: warning: parenthesize argument(s) for future version
calculator.rb:54: warning: parenthesize argument(s) for future version
<calc> 2 + 3
#<ParseException: No valid token found on stacks:
stack 0: on line:
' + 3'
^
|
--- Parse error!!
in state 0
<calc>

Any chance someone'll pick rockit back up and fix the mountain of errors?
I'm interested in it; I think it's a good idea, and I like the rockit
grammar syntax. I only wish it worked!
--=20
- nornagon
 
M

Mark Probert

Hi ..

Hiya. I've been looking all over for a decent ruby parser/lexer
generator, and when I found rockit, I thought my search was over.
Depends on what you mean by decent. There are a number of parser/lexers out
there that do a reasonable job. If you mean the ruby equivalent of antlr,
then you are, currently out of luck.

Rockit needs some work for 1.8. Robert Feldt is the owner and I am not sure
of what he is up to these days. Looks like an update is planned, but I have
no idea of the when or where.

There are some other options, though I am not sure they mean "decent":

racc -- a YACC compiler-compiler

Two versions of Coco/R (LL-1 parser-scanner), one from Ryan Davis in pure
Ruby and the other from me as a C extension (grammer and action in C,
produces a Ruby extension). I am looking at updating my version to be
an LL-k parser but that is a ways away yet.

This doesn't really help with the Rockit question though ..

Regards,
 
N

nornagon

Hi ..
=20

Depends on what you mean by decent. There are a number of parser/lexers = out
there that do a reasonable job. If you mean the ruby equivalent of antlr= ,
then you are, currently out of luck.
=20
Rockit needs some work for 1.8. Robert Feldt is the owner and I am not s= ure
of what he is up to these days. Looks like an update is planned, but I h= ave
no idea of the when or where.
=20
There are some other options, though I am not sure they mean "decent":
=20
racc -- a YACC compiler-compiler

Yeah, I've looked at racc. It's the next-best thing to rockit, and
it's what I'll use until rockit gets a good cleanup.
=20
Two versions of Coco/R (LL-1 parser-scanner), one from Ryan Davis in pu= re
Ruby and the other from me as a C extension (grammer and action in C,
produces a Ruby extension).

At last count, neither of those worked on my setup (iirc)
I am looking at updating my version to be an LL-k parser but that is a = ways
away yet.
=20
This doesn't really help with the Rockit question though ..
=20

Thanks anyway; it's good to see a reply! :)

I did send Robert an email very similar to this one a while ago
(months), but I have yet received no reply. I wonder if I even sent it
to the right address...

--=20
- nornagon
 

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

Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,818
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top