mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 01:25:07 +00:00
LibJS: Add operator precedence parsing
Obey precedence and associativity rules when parsing expressions with chained operators.
This commit is contained in:
parent
f347dd5c5e
commit
15d5b2d29e
8 changed files with 281 additions and 53 deletions
2
Base/home/anon/js/operator-precedence.js
Normal file
2
Base/home/anon/js/operator-precedence.js
Normal file
|
@ -0,0 +1,2 @@
|
|||
var foo = 1 + 2 * 3 - 4 / 5;
|
||||
foo.bar();
|
Loading…
Add table
Add a link
Reference in a new issue