mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibWeb: Add TokenStream class to CSS Parser
The entry points for CSS parsing in the spec are defined as accepting any of a stream of Tokens, or a stream of ComponentValues, or a String. TokenStream is an attempt to reduce the duplication of code for that.
This commit is contained in:
parent
6c03123b2d
commit
b7116711bf
Notes:
sideshowbarker
2024-07-18 09:14:05 +09:00
Author: https://github.com/AtkinsSJ
Commit: b7116711bf
Pull-request: https://github.com/SerenityOS/serenity/pull/8341
4 changed files with 119 additions and 47 deletions
|
@ -70,6 +70,8 @@ public:
|
|||
|
||||
[[nodiscard]] Vector<Token> parse();
|
||||
|
||||
[[nodiscard]] static Token create_eof_token();
|
||||
|
||||
private:
|
||||
[[nodiscard]] u32 next_code_point();
|
||||
[[nodiscard]] u32 peek_code_point(size_t offset = 0) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue