7 #ifndef MRUBY_COMPILE_H 8 #define MRUBY_COMPILE_H 30 struct RClass *target_class;
49 uint16_t lineno, filename_index;
53 enum mrb_lex_state_enum {
75 #define STR_FUNC_PARSING 0x01 76 #define STR_FUNC_EXPAND 0x02 77 #define STR_FUNC_REGEXP 0x04 78 #define STR_FUNC_WORD 0x08 79 #define STR_FUNC_SYMBOL 0x10 80 #define STR_FUNC_ARRAY 0x20 81 #define STR_FUNC_HEREDOC 0x40 82 #define STR_FUNC_XQUOTE 0x80 84 enum mrb_string_type {
85 str_not_parsing = (0),
86 str_squote = (STR_FUNC_PARSING),
87 str_dquote = (STR_FUNC_PARSING|STR_FUNC_EXPAND),
88 str_regexp = (STR_FUNC_PARSING|STR_FUNC_REGEXP|STR_FUNC_EXPAND),
89 str_sword = (STR_FUNC_PARSING|STR_FUNC_WORD|STR_FUNC_ARRAY),
90 str_dword = (STR_FUNC_PARSING|STR_FUNC_WORD|STR_FUNC_ARRAY|STR_FUNC_EXPAND),
91 str_ssym = (STR_FUNC_PARSING|STR_FUNC_SYMBOL),
92 str_ssymbols = (STR_FUNC_PARSING|STR_FUNC_SYMBOL|STR_FUNC_ARRAY),
93 str_dsymbols = (STR_FUNC_PARSING|STR_FUNC_SYMBOL|STR_FUNC_ARRAY|STR_FUNC_EXPAND),
94 str_heredoc = (STR_FUNC_PARSING|STR_FUNC_HEREDOC),
95 str_xquote = (STR_FUNC_PARSING|STR_FUNC_XQUOTE|STR_FUNC_EXPAND),
102 enum mrb_string_type type;
108 #define MRB_PARSER_TOKBUF_MAX (UINT16_MAX-1) 109 #define MRB_PARSER_TOKBUF_SIZE 256 116 const char *s, *send;
117 #ifndef MRB_DISABLE_STDIO 125 enum mrb_lex_state_enum lstate;
128 unsigned int cond_stack;
129 unsigned int cmdarg_stack;
132 int in_def, in_single;
138 char buf[MRB_PARSER_TOKBUF_SIZE];
160 uint16_t filename_table_length;
161 uint16_t current_filename_index;
174 #ifndef MRB_DISABLE_STDIO 183 #ifndef MRB_DISABLE_STDIO
Class class.
Definition: class.h:17
#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:73
#define MRB_END_DECL
End declarations in C mode.
Definition: common.h:28
mruby common platform definition"
Definition: compile.h:112
Definition: boxing_nan.h:39