I need to parse a piece Ruby source code file. For that purpose, I need
a Ruby parser (which can be used on windows plateform). I tried to
configure ruby_parser 1.0, but I am unable to configure it on windows
XP, as it is depending upon RACC parser, which can be installed in unix
operating system. Any simple to use Ruby parse will be a great help.
ParseTree comes precompiled for windows, is faster, and does the exact
same thing as ruby_parser.
Daniel Brumbaugh Keeney
···
On Sat, Jun 7, 2008 at 4:40 PM, Muzaffar Hameed <muzaffar@muzaffar.net> wrote:
Hi All!
I need to parse a piece Ruby source code file. For that purpose, I need
a Ruby parser (which can be used on windows plateform). I tried to
configure ruby_parser 1.0, but I am unable to configure it on windows
XP, as it is depending upon RACC parser.
I need to parse a piece Ruby source code file. For that purpose, I need
a Ruby parser (which can be used on windows plateform). I tried to
configure ruby_parser 1.0, but I am unable to configure it on windows
XP, as it is depending upon RACC parser, which can be installed in unix
operating system. Any simple to use Ruby parse will be a great help.
Thanks for helping me. I am able to install ParseTree on my windows
system. Further, it also requirs RubyInline, so I also installed it. But
I am still unable to run a simple example of parse tree so far.
I read in it documentations that
def conditional1(arg1)
if arg1 == 0 then
return 1
end
return 0
end
But how can I get this output. I am unable to do so. Actually I am
farely new to Ruby & specially parsing. Further, I have to run this
parser on Rails but no way yet. I am not able to run a simple example of
parsetree. I study much material about parsing but donot have a clue
that how to get the above output of the source file. I will be very
thankful,if you can guide me with a very simple example how to use
parsetree to get above output. I am waiting your kind reply.
Bye
/Muzaffar
Daniel Brumbaugh Keeney wrote:
···
On Sat, Jun 7, 2008 at 4:40 PM, Muzaffar Hameed <muzaffar@muzaffar.net> > wrote:
Hi All!
I need to parse a piece Ruby source code file. For that purpose, I need
a Ruby parser (which can be used on windows plateform). I tried to
configure ruby_parser 1.0, but I am unable to configure it on windows
XP, as it is depending upon RACC parser.
ParseTree comes precompiled for windows, is faster, and does the exact
same thing as ruby_parser.