LibJS: Add operator precedence parsing

Obey precedence and associativity rules when parsing expressions
with chained operators.
This commit is contained in:
Stephan Unverwerth 2020-03-12 23:02:41 +01:00 committed by Andreas Kling
commit 15d5b2d29e
Notes: sideshowbarker 2024-07-19 08:19:13 +09:00
8 changed files with 281 additions and 53 deletions

View file

@ -0,0 +1,2 @@
var foo = 1 + 2 * 3 - 4 / 5;
foo.bar();