-
Notifications
You must be signed in to change notification settings - Fork 684
Merge the js-parser and parser files #859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,8 +128,24 @@ typedef struct | |
parser_line_counter_t column; /**< column where the error occured */ | ||
} parser_error_location; | ||
|
||
/* Note: source must be a valid UTF-8 string. */ | ||
ecma_compiled_code_t * parser_parse_script (const uint8_t *, size_t, int, parser_error_location *); | ||
/** | ||
* Parser completion status | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The comment should be kept. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This one is not fixed. After that, LGTM |
||
*/ | ||
typedef enum | ||
{ | ||
JSP_STATUS_OK, /**< parse finished successfully, no early errors occured */ | ||
JSP_STATUS_SYNTAX_ERROR, /**< SyntaxError early error occured */ | ||
JSP_STATUS_REFERENCE_ERROR /**< ReferenceError early error occured */ | ||
} jsp_status_t; | ||
|
||
extern void parser_set_show_instrs (int); | ||
|
||
/* Note: source must be a valid UTF-8 string */ | ||
extern jsp_status_t parser_parse_script (const jerry_api_char_t *, size_t, | ||
ecma_compiled_code_t **); | ||
extern jsp_status_t parser_parse_eval (const jerry_api_char_t *, size_t, bool, | ||
ecma_compiled_code_t **); | ||
|
||
const char *parser_error_to_string (parser_error_t); | ||
|
||
extern void parser_set_show_instrs (int); | ||
|
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong indentation