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

LibCpp: Parse C-Style parse expressions

This commit is contained in:
Itamar 2021-04-02 11:29:44 +03:00 committed by Andreas Kling
parent ec2c54ee2e
commit aa717e6a62
4 changed files with 65 additions and 3 deletions

View file

@ -90,6 +90,7 @@ private:
bool match_template_arguments();
bool match_name();
bool match_cpp_cast_expression();
bool match_c_style_cast_expression();
bool match_sizeof_expression();
bool match_braced_init_list();
@ -137,6 +138,7 @@ private:
NonnullRefPtr<CppCastExpression> parse_cpp_cast_expression(ASTNode& parent);
NonnullRefPtr<SizeofExpression> parse_sizeof_expression(ASTNode& parent);
NonnullRefPtr<BracedInitList> parse_braced_init_list(ASTNode& parent);
NonnullRefPtr<CStyleCastExpression> parse_c_style_cast_expression(ASTNode& parent);
bool match(Token::Type);
Token consume(Token::Type);