mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-25 11:48:06 +00:00
LibSQL: Lex string and blob literals
Blob literals are the same as string literals except prefixed with an 'x' or 'X'.
This commit is contained in:
parent
730fbfb31e
commit
570aa57df3
Notes:
sideshowbarker
2024-07-18 19:17:30 +09:00
Author: https://github.com/trflynn89
Commit: 570aa57df3
Pull-request: https://github.com/SerenityOS/serenity/pull/6538
Reviewed-by: https://github.com/awesomekling
3 changed files with 61 additions and 7 deletions
|
@ -44,6 +44,8 @@ private:
|
|||
|
||||
bool consume_whitespace_and_comments();
|
||||
bool consume_numeric_literal();
|
||||
bool consume_string_literal();
|
||||
bool consume_blob_literal();
|
||||
bool consume_exponent();
|
||||
bool consume_hexadecimal_number();
|
||||
|
||||
|
@ -51,6 +53,9 @@ private:
|
|||
bool is_identifier_start() const;
|
||||
bool is_identifier_middle() const;
|
||||
bool is_numeric_literal_start() const;
|
||||
bool is_string_literal_start() const;
|
||||
bool is_string_literal_end() const;
|
||||
bool is_blob_literal_start() const;
|
||||
bool is_line_comment_start() const;
|
||||
bool is_block_comment_start() const;
|
||||
bool is_block_comment_end() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue