1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:37:34 +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:
Muhammad Zahalqa 2020-08-18 19:46:36 +03:00 committed by Andreas Kling
parent b36ac88349
commit 5a2ec86048
3 changed files with 116 additions and 102 deletions

View file

@ -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;