Skip to content

Instantly share code, notes, and snippets.

@y-yu
Created August 22, 2013 03:15
Show Gist options
  • Save y-yu/6302822 to your computer and use it in GitHub Desktop.
Save y-yu/6302822 to your computer and use it in GitHub Desktop.
Rubyの改造(3)
18a19,20
> #include "relex.c"
> #include "re_parse.c"
3545a3548,3554
> static VALUE
> rb_reg_parse (VALUE re)
> {
> re_parse( RREGEXP_SRC_PTR(re) );
> return re;
> }
>
3584a3594
> rb_define_method(rb_cRegexp, "parse", rb_reg_parse, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment