LibCpp: Parse If statements

This commit is contained in:
Itamar 2021-01-29 12:03:02 +02:00 committed by Andreas Kling
commit 8ed65d7b48
Notes: sideshowbarker 2024-07-18 22:29:06 +09:00
4 changed files with 70 additions and 0 deletions

View file

@ -104,6 +104,7 @@ private:
NonnullRefPtr<ForStatement> parse_for_statement(ASTNode& parent);
NonnullRefPtr<BlockStatement> parse_block_statement(ASTNode& parent);
NonnullRefPtr<Comment> parse_comment(ASTNode& parent);
NonnullRefPtr<IfStatement> parse_if_statement(ASTNode& parent);
bool match(Token::Type);
Token consume(Token::Type);