google-code-export / esprima

Automatically exported from code.google.com/p/esprima
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

[ES6] Octal integer literal #621

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Support octal integer literal.

Original issue reported on code.google.com by ariya.hi...@gmail.com on 15 Jan 2015 at 9:37

GoogleCodeExporter commented 9 years ago
Per Rev 30 (Dec 24 2014) of the draft spec, the relevant grammar is:

Section 11.8.3

NumericLiteral ::
  DecimalLiteral
  BinaryIntegerLiteral
  OctalIntegerLiteral
  HexIntegerLiteral

OctalIntegerLiteral ::
  0o OctalDigits
  0O OctalDigits

OctalDigits ::
  OctalDigit
  OctalDigits OctalDigit

OctalDigit :: one of
  0 1 2 3 4 5 6 7

Original comment by ariya.hi...@gmail.com on 15 Jan 2015 at 9:37

GoogleCodeExporter commented 9 years ago
Related implementation in the harmony branch: issue 270.

Original comment by ariya.hi...@gmail.com on 15 Jan 2015 at 9:38

GoogleCodeExporter commented 9 years ago
See also 
https://people.mozilla.org/~jorendorff/es6-draft.html#sec-literals-numeric-liter
als.

Original comment by ariya.hi...@gmail.com on 15 Jan 2015 at 9:38

GoogleCodeExporter commented 9 years ago
ES6 octal integer literal.
https://github.com/ariya/esprima/commit/941583f132

Original comment by ariya.hi...@gmail.com on 18 Jan 2015 at 5:30