1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:38:10 +00:00

LibJS: Parse "try", "catch" and "finally"

This is the first step towards support exceptions. :^)
This commit is contained in:
Andreas Kling 2020-03-24 14:03:55 +01:00
parent 404de10a15
commit c33d4aefc3
5 changed files with 132 additions and 1 deletions

View file

@ -52,6 +52,8 @@ public:
NonnullRefPtr<VariableDeclaration> parse_variable_declaration();
NonnullRefPtr<ForStatement> parse_for_statement();
NonnullRefPtr<IfStatement> parse_if_statement();
NonnullRefPtr<TryStatement> parse_try_statement();
NonnullRefPtr<CatchClause> parse_catch_clause();
NonnullRefPtr<Expression> parse_expression(int min_precedence, Associativity associate = Associativity::Right);
NonnullRefPtr<Expression> parse_primary_expression();