mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +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
Notes:
sideshowbarker
2024-07-19 08:19:13 +09:00
Author: https://github.com/sunverwerth
Commit: 15d5b2d29e
Pull-request: https://github.com/SerenityOS/serenity/pull/1433
Issue: https://github.com/SerenityOS/serenity/issues/1428
Issue: https://github.com/SerenityOS/serenity/issues/1432
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