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
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