mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 20:00:19 +02:00
Parse Decimal Numbers
* module/language/ecmascript/parse.scm: handle numbers with leading decimals correctly. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
326298206a
commit
84816b3aae
1 changed files with 1 additions and 0 deletions
|
@ -197,6 +197,7 @@
|
||||||
(StringLiteral) : `(string ,$1)
|
(StringLiteral) : `(string ,$1)
|
||||||
(RegexpLiteral) : `(regexp ,$1)
|
(RegexpLiteral) : `(regexp ,$1)
|
||||||
(NumericLiteral) : `(number ,$1)
|
(NumericLiteral) : `(number ,$1)
|
||||||
|
(dot NumericLiteral) : `(number ,(string->number (string-append "." (number->string $2))))
|
||||||
(ArrayLiteral) : $1
|
(ArrayLiteral) : $1
|
||||||
(ObjectLiteral) : $1
|
(ObjectLiteral) : $1
|
||||||
(lparen Expression rparen) : $2)
|
(lparen Expression rparen) : $2)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue