How can a lexer decide a token to be "get", "IdentifierName" or "Identifier" ?

gaz Heyes gazheyes at
Mon Feb 4 15:13:33 PST 2013

On 4 February 2013 21:56, Michael Dyck <jmdyck at> wrote:

> Brendan Eich wrote:
>> Don't forget method definition shorthand syntax, if the next token is
>> "(". Then the method is named "get", of course.
I find the syntax of set/get confusing:
({'get'x(){return 123;}}).x
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list