diff options
author | Itamar <itamar8910@gmail.com> | 2021-03-01 22:33:46 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-02 12:50:37 +0100 |
commit | 1d3b5dabc3554f8c5dc40119d487baa3c7266d98 (patch) | |
tree | 49a8040e70b0a9e14065a9e90467735b48c6ca88 /Userland/Libraries/LibCpp/Parser.h | |
parent | 5c79297b2c93171072129112ac328e2c2498978f (diff) | |
download | serenity-1d3b5dabc3554f8c5dc40119d487baa3c7266d98.zip |
LibCpp: Parse ellipsis
We can now parse the printf function declaration :^)
Diffstat (limited to 'Userland/Libraries/LibCpp/Parser.h')
-rw-r--r-- | Userland/Libraries/LibCpp/Parser.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCpp/Parser.h b/Userland/Libraries/LibCpp/Parser.h index 15676dd92c..12cf2ffd12 100644 --- a/Userland/Libraries/LibCpp/Parser.h +++ b/Userland/Libraries/LibCpp/Parser.h @@ -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(); }; } |