mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
LibJS: Parse "if" statements
This patch implements basic parsing of "if" statements. We don't yet support parsing "else", so I added a FIXME about that.
This commit is contained in:
parent
55c845713a
commit
7c48c3c8e1
4 changed files with 26 additions and 7 deletions
|
@ -51,6 +51,7 @@ public:
|
|||
NonnullRefPtr<ReturnStatement> parse_return_statement();
|
||||
NonnullRefPtr<VariableDeclaration> parse_variable_declaration();
|
||||
NonnullRefPtr<ForStatement> parse_for_statement();
|
||||
NonnullRefPtr<IfStatement> parse_if_statement();
|
||||
|
||||
NonnullRefPtr<Expression> parse_expression(int min_precedence, Associativity associate = Associativity::Right);
|
||||
NonnullRefPtr<Expression> parse_primary_expression();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue