Remove parser_init / parser_free interfaces (corresponding actions are now performed in parser_parse_program); introduce boolean return value in parser invocation interfaces that would indicate whether SyntaxError was raised during parse.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
@@ -18,11 +18,9 @@
|
||||
|
||||
#include "jrt.h"
|
||||
|
||||
void parser_init ();
|
||||
void parser_set_show_opcodes (bool);
|
||||
void parser_parse_script (const char *, size_t);
|
||||
bool parser_parse_eval (const char *, size_t);
|
||||
void parser_parse_new_function (const char **, size_t);
|
||||
void parser_free (void);
|
||||
bool parser_parse_script (const char *, size_t, const opcode_t **);
|
||||
bool parser_parse_eval (const char *, size_t, const opcode_t **);
|
||||
bool parser_parse_new_function (const char **, size_t, const opcode_t **);
|
||||
|
||||
#endif
|
||||
#endif /* PARSER_H */
|
||||
|
||||
Reference in New Issue
Block a user