mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 07:37:03 +00:00
JSSpecCompiler: Parse arbitrarily large rational numbers in xspec mode
This commit is contained in:
parent
2a2e31f2ed
commit
86d54a8684
Notes:
sideshowbarker
2024-07-17 10:39:39 +09:00
Author: https://github.com/DanShaders
Commit: 86d54a8684
Pull-request: https://github.com/SerenityOS/serenity/pull/23123
Reviewed-by: https://github.com/ADKaster ✅
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