mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:27:35 +00:00
LibJS: Parser refactored to use constexpr precedence table
Replaced implementation dependent on HashMap with a constexpr PrecedenceTable based on array lookup.
This commit is contained in:
parent
b36ac88349
commit
5a2ec86048
3 changed files with 116 additions and 102 deletions
|
@ -121,7 +121,6 @@ public:
|
|||
private:
|
||||
friend class ScopePusher;
|
||||
|
||||
int operator_precedence(TokenType) const;
|
||||
Associativity operator_associativity(TokenType) const;
|
||||
bool match_expression() const;
|
||||
bool match_unary_prefixed_expression() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue