28 struct RClass *target_class;
35 const struct RProc *upper;
47#define mrbc_context mrb_ccontext
48#define mrbc_context_new mrb_ccontext_new
49#define mrbc_context_free mrb_ccontext_free
50#define mrbc_filename mrb_ccontext_filename
51#define mrbc_partial_hook mrb_ccontext_partial_hook
52#define mrbc_cleanup_local_variables mrb_ccontext_cleanup_local_variables
57 uint16_t lineno, filename_index;
61enum mrb_lex_state_enum {
83#define STR_FUNC_PARSING 0x01
84#define STR_FUNC_EXPAND 0x02
85#define STR_FUNC_REGEXP 0x04
86#define STR_FUNC_WORD 0x08
87#define STR_FUNC_SYMBOL 0x10
88#define STR_FUNC_ARRAY 0x20
89#define STR_FUNC_HEREDOC 0x40
90#define STR_FUNC_XQUOTE 0x80
93 str_not_parsing = (0),
94 str_squote = (STR_FUNC_PARSING),
95 str_dquote = (STR_FUNC_PARSING|STR_FUNC_EXPAND),
96 str_regexp = (STR_FUNC_PARSING|STR_FUNC_REGEXP|STR_FUNC_EXPAND),
97 str_sword = (STR_FUNC_PARSING|STR_FUNC_WORD|STR_FUNC_ARRAY),
98 str_dword = (STR_FUNC_PARSING|STR_FUNC_WORD|STR_FUNC_ARRAY|STR_FUNC_EXPAND),
99 str_ssym = (STR_FUNC_PARSING|STR_FUNC_SYMBOL),
100 str_ssymbols = (STR_FUNC_PARSING|STR_FUNC_SYMBOL|STR_FUNC_ARRAY),
101 str_dsymbols = (STR_FUNC_PARSING|STR_FUNC_SYMBOL|STR_FUNC_ARRAY|STR_FUNC_EXPAND),
102 str_heredoc = (STR_FUNC_PARSING|STR_FUNC_HEREDOC),
103 str_xquote = (STR_FUNC_PARSING|STR_FUNC_XQUOTE|STR_FUNC_EXPAND),
113 enum mrb_string_type type;
119#define MRB_PARSER_TOKBUF_MAX (UINT16_MAX-1)
120#define MRB_PARSER_TOKBUF_SIZE 256
127 const char *s, *send;
137 enum mrb_lex_state_enum lstate;
138 struct parser_lex_strterm *lex_strterm;
140 unsigned int cond_stack;
141 unsigned int cmdarg_stack;
144 int in_def, in_single;
150 char buf[MRB_PARSER_TOKBUF_SIZE];
166 const struct RProc *upper;
171 uint16_t filename_table_length;
172 uint16_t current_filename_index;
mruby common platform definition"
#define MRB_END_DECL
End declarations in C mode.
Definition common.h:28
#define MRB_BEGIN_DECL
Start declarations in C mode.
Definition common.h:26
#define MRB_API
Declare a public mruby API function.
Definition common.h:79
mrb_value mrb_load_file(mrb_state *, FILE *)
program load functions Please note! Currently due to interactions with the GC calling these functions...
Class class.
Definition class.h:17
Definition boxing_nan.h:40