parse.y: refactor mrb_parser_parse().

- remove `mrb_jmpbuf` from `truct mrb_parser_state`
- unify exception handling of `mrb_state` and `mrb_parser_state`.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-09-07 07:31:21 +09:00
parent ad3404229f
commit 2fb06aabe6
3 changed files with 28 additions and 53 deletions
-3
View File
@@ -16,8 +16,6 @@ MRB_BEGIN_DECL
#include <mruby.h>
struct mrb_jmpbuf;
struct mrb_parser_state;
/* load context */
typedef struct mrbc_context {
@@ -165,7 +163,6 @@ struct mrb_parser_state {
uint16_t filename_table_length;
uint16_t current_filename_index;
struct mrb_jmpbuf* jmp;
mrb_ast_node *nvars;
};