mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 02:26:10 +00:00
LibCpp: Parse If statements
This commit is contained in:
parent
e8f040139b
commit
8ed65d7b48
Notes:
sideshowbarker
2024-07-18 22:29:06 +09:00
Author: https://github.com/itamar8910
Commit: 8ed65d7b48
Pull-request: https://github.com/SerenityOS/serenity/pull/5244
Reviewed-by: https://github.com/alimpfard
4 changed files with 70 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue