Support labelled statements.
Related issue: #52 JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
@@ -163,6 +163,11 @@ typedef struct
|
||||
literal_index_t uid;
|
||||
} token;
|
||||
|
||||
/**
|
||||
* Initializer for empty token
|
||||
*/
|
||||
#define TOKEN_EMPTY_INITIALIZER {0, TOK_EMPTY, 0}
|
||||
|
||||
void lexer_init (const char *, size_t, bool);
|
||||
void lexer_free (void);
|
||||
|
||||
@@ -185,4 +190,6 @@ const char *lexer_token_type_to_string (token_type);
|
||||
|
||||
void lexer_set_strict_mode (bool);
|
||||
|
||||
extern bool lexer_are_tokens_with_same_identifier (token id1, token id2);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user