LibJS: Add numeric literal parsing for different bases and exponents

This commit is contained in:
Stephan Unverwerth 2020-04-05 14:20:58 +02:00 committed by Andreas Kling
commit 500f6d9e3a
Notes: sideshowbarker 2024-07-19 07:53:33 +09:00
4 changed files with 107 additions and 5 deletions

View file

@ -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*);