Do you want to pass a flag to Lexer for ES6 and control these ES6 specific stuff only under that flag? Much like -scripting is handled?

-Sundar

On 9/1/2015 8:00 PM, Andreas Woess wrote:
Please reviewhttp://cr.openjdk.java.net/~aw/8134873/ forhttps://bugs.openjdk.java.net/browse/JDK-8134873

Implements Lexer/Parser support for ECMAScript 6 binary (0b) and octal (0o) literals. I've renamed OCTAL (legacy octal literal, e.g. 0777) to OCTAL_LEGACY and added OCTAL and BINARY_LITERAL token types (the _LITERAL suffix is to disambiguate with TokenKind.BINARY).

Thanks,
Andreas


Reply via email to