Permalink
Browse files

add all forms of exponent number literal

  • Loading branch information...
1 parent 79cc6ad commit f674205ffabdb2fc4be17a312fc1a5d17c815380 @veged committed Jul 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 bs-js-compiler.txt
View
@@ -10,7 +10,7 @@ ometa BSJSParser {
hexLit = hexLit:n hexDigit:d -> (n * 16 + d)
| hexDigit,
number = ``0x'' hexLit:n -> [#number, n]
- | <digit+ ('e' '-'? digit+)?>:f -> [#number, parseFloat(f)]
+ | <digit+ (('e' | 'E') ('-' | '+')? digit+)?>:f -> [#number, parseFloat(f)]
| <digit+ ('.' digit+)?>:f -> [#number, parseFloat(f)],
escapeChar = <'\\' ('u' hexDigit hexDigit hexDigit hexDigit
| 'x' hexDigit hexDigit

0 comments on commit f674205

Please sign in to comment.