1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:57:45 +00:00

LibCpp: Parse If statements

This commit is contained in:
Itamar 2021-01-29 12:03:02 +02:00 committed by Andreas Kling
parent e8f040139b
commit 8ed65d7b48
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);