How can a lexer decide a token to be "get", "IdentifierName" or "Identifier" ?
gaz Heyes
gazheyes at gmail.com
Mon Feb 4 15:13:33 PST 2013
On 4 February 2013 21:56, Michael Dyck <jmdyck at ibiblio.org> 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: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130204/fe3f5f69/attachment.html>
More information about the es-discuss
mailing list