How does one obtain the official Ruby grammar?
TIA - Jonathan
How does one obtain the official Ruby grammar?
TIA - Jonathan
Jonathan Harley wrote:
How does one obtain the official Ruby grammar?
TIA - Jonathan
parse.y from the source is the official grammar. Someone should prolly
right up the BNF for it though.
Charlie
parse.y from the source is the official grammar. Someone should prolly
right up the BNF for it though.
I was afraid of that. You know, there did have to be a ruby.g file at
some time in order to generate the parse.y…
I guess I’ll have to take a swing at reversing engineering the
grammar. I suppose the parse.y and the Ruby Programming book ought to
provide enough information.
Any other sources you could think of?
Thanks - Jonathan
take a look in the samples/ ruby directory. then take exyacc.rb and
run it on parse.y, it wiull generate ebnf for you.
Then you just need to understand what the name mean (i.e. you miss the
lexing part)
il 11 Mar 2004 06:31:34 -0800, jharley@sc.rr.com (Jonathan Harley) ha scritto::
I guess I’ll have to take a swing at reversing engineering the
grammar. I suppose the parse.y and the Ruby Programming book ought to
provide enough information.
Thank you. I guess you figured I hadn’t looked in the samples directory…
Looks like a start!
Jonathan
Jonathan Harley wrote:
Thank you. I guess you figured I hadn’t looked in the samples directory…
Looks like a start!
Jonathan
While you are looking into ruby grammar, could you (or anyone else) be
convinced to take a look at cedet-semantic and it’s bovine normal form?
I have been trying to to figure out how to make ECB work with ruby and I
am at a total loss… it seems that a .bnf (not backus-naur form, but
their bovine variant) should be made.
If I had the slightest clue about BNF (either the bovine and the backus
variants) then - maybe - I could make ECB work with ruby, but I haven’t
so I can’t.
Any pointers would be greatly appreciated.
–
dc -e
4ddod3dddn1-89danrn10-dan3+ann6dan2an13dn1+dn2-dn3+5ddan2/9+an13nap