Commit 2778058a authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

Merge branch 'jf/parser-dump' of https://github.com/thecodeshop/mruby into...

Merge branch 'jf/parser-dump' of https://github.com/thecodeshop/mruby into thecodeshop-jf/parser-dump
parents 41baf125 30b65078
......@@ -21,6 +21,9 @@ typedef int mrb_int;
typedef intptr_t mrb_sym;
#define readint(p,base) strtol((p),NULL,(base))
#undef PARSER_DUMP /* do not print out parser state */
//#define PARSER_DUMP /* print out parser state */
#undef INCLUDE_ENCODING /* not use encoding classes (ascii only) */
//#define INCLUDE_ENCODING /* use UTF-8 encoding classes */
......@@ -31,6 +34,10 @@ typedef intptr_t mrb_sym;
# define INCLUDE_ENCODING /* Regexp depends Encoding */
#endif
#ifdef MRUBY_DEBUG_BUILD
# define PARSER_DUMP
#endif
#undef HAVE_UNISTD_H /* WINDOWS */
#define HAVE_UNISTD_H /* LINUX */
......
......@@ -4761,8 +4761,6 @@ mrb_parse_string(mrb_state *mrb, const char *s)
return mrb_parse_nstring(mrb, s, strlen(s));
}
#define PARSER_DUMP
void parser_dump(mrb_state *mrb, node *tree, int offset);
int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment