mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:17:35 +00:00
LibCpp: Parse ellipsis
We can now parse the printf function declaration :^)
This commit is contained in:
parent
5c79297b2c
commit
1d3b5dabc3
4 changed files with 42 additions and 22 deletions
|
@ -111,7 +111,7 @@ private:
|
|||
Token consume(Token::Type);
|
||||
Token consume();
|
||||
Token consume_keyword(const String&);
|
||||
Token peek() const;
|
||||
Token peek(size_t offset = 0) const;
|
||||
Optional<Token> peek(Token::Type) const;
|
||||
Position position() const;
|
||||
StringView text_of_range(Position start, Position end) const;
|
||||
|
@ -163,6 +163,7 @@ private:
|
|||
Vector<StringView> parse_type_qualifiers();
|
||||
bool match_attribute_specification();
|
||||
void consume_attribute_specification();
|
||||
bool match_ellipsis();
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue