-
Some experimentation suggests I don't really want to know what they are in EcmaScript, but in TinySES... shouldn't they just be keywords? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
It sounds like you are not running in strict mode
…Sent from my phone
On Jun 28, 2018, at 9:33 PM, Dan Connolly ***@***.***> wrote:
Some experimentation suggests I don't really want to know what they are in EcmaScript, but in TinySES... shouldn't they just be keywords?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Beta Was this translation helpful? Give feedback.
-
Strict mode? I'm not running JS at all. I'm trying to read the TinySES grammar (and port it to scala). |
Beta Was this translation helpful? Give feedback.
-
"const" is listed as a keyword at https://github.com/Agoric/TinySES/blob/92f6766a1a392b82f85f5d4dc89f53f73ce4dee9/src/tinyses.js#L58 On "let", I missed the note at Both "let" and "static" should be added to the RESERVED_WORD list at Thanks for catching this! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the spec pointers. Overall, I'm struggling to understand how the bnf library handles keywords and |
Beta Was this translation helpful? Give feedback.
"const" is listed as a keyword at https://github.com/Agoric/TinySES/blob/92f6766a1a392b82f85f5d4dc89f53f73ce4dee9/src/tinyses.js#L58
On "let", I missed the note at
http://www.ecma-international.org/ecma-262/8.0/#sec-keywords
so I thought I could just start with the ES-grammar reserved words, except for the exceptions I knew about: "get" and "set". The other surprise mentioned in that note is "static", which should also be defined as reserved in TinySES.
Both "let" and "static" should be added to the RESERVED_WORD list at
https://github.com/Agoric/TinySES/blob/92f6766a1a392b82f85f5d4dc89f53f73ce4dee9/src/tinyses.js#L51
Thanks for catching this!