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:
Ruben Ayrapetyan
2015-06-19 00:11:19 +03:00
parent 2bf25f10eb
commit 4e563932f1
8 changed files with 160 additions and 155 deletions
+4 -6
View File
@@ -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 */