mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:38:13 +00:00
JSSpecCompiler: Parse arbitrarily large rational numbers in xspec mode
This commit is contained in:
parent
2a2e31f2ed
commit
86d54a8684
9 changed files with 64 additions and 8 deletions
|
@ -0,0 +1,29 @@
|
|||
===== AST after reference-resolving =====
|
||||
ArbitrarilyLargeNumbers(a):
|
||||
TreeList
|
||||
BinaryOperation Assignment
|
||||
Var a
|
||||
MathematicalConstant 1
|
||||
BinaryOperation Assignment
|
||||
Var b
|
||||
MathematicalConstant 3.6
|
||||
BinaryOperation Assignment
|
||||
Var c
|
||||
MathematicalConstant -3.6
|
||||
BinaryOperation Assignment
|
||||
Var d
|
||||
MathematicalConstant -1000000000000000000000
|
||||
BinaryOperation Assignment
|
||||
Var e
|
||||
MathematicalConstant 10000001/10000000
|
||||
ReturnNode
|
||||
BinaryOperation Plus
|
||||
Var a
|
||||
BinaryOperation Plus
|
||||
Var b
|
||||
BinaryOperation Plus
|
||||
Var c
|
||||
BinaryOperation Plus
|
||||
Var d
|
||||
Var e
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue