mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibJS: Add numeric literal parsing for different bases and exponents
This commit is contained in:
parent
b82a2239c6
commit
500f6d9e3a
Notes:
sideshowbarker
2024-07-19 07:53:33 +09:00
Author: https://github.com/sunverwerth
Commit: 500f6d9e3a
Pull-request: https://github.com/SerenityOS/serenity/pull/1646
Reviewed-by: https://github.com/linusg
4 changed files with 107 additions and 5 deletions
|
@ -42,12 +42,14 @@ public:
|
|||
|
||||
private:
|
||||
void consume();
|
||||
void consume_exponent();
|
||||
bool is_eof() const;
|
||||
bool is_identifier_start() const;
|
||||
bool is_identifier_middle() const;
|
||||
bool is_line_comment_start() const;
|
||||
bool is_block_comment_start() const;
|
||||
bool is_block_comment_end() const;
|
||||
bool is_numeric_literal_start() const;
|
||||
|
||||
void syntax_error(const char*);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue