[grammarians] [Rubygrammar-grammarians] Ruby Grammar Project
Terence Parr
parrt at cs.usfca.edu
Sun Nov 27 13:56:52 EST 2005
On Nov 26, 2005, at 7:27 PM, MenTaLguY wrote:
> For a bare identifier to be treated as a variable (rather than a
> method
> call), it's sufficient for an assignment to it to appear anywhere
> prior
> to that point within a method body.
Good to know. So a scope is a lexical scope of the method? For the
random code I type outside of a method, what "method" is it a part of?
Where is there an informal description of scoping rules and general
syntax? I'm beginning to think I should build a natural grammar from
scratch rather than modify the yacc beast...that said, I do have it
converted...it's just ugly. Jean Bovet's nice ANTLRWorks tool did
the left-recursion removal with a single menu item. :)
Ter
More information about the Rubygrammar-grammarians
mailing list