Permalink
Browse files

[GGE::Exp] codegen reimplementation

We no longer use TreeSpider to execute the regular expression. Instead, the
required Perl 6 code is generated and then compiled.

After this change, all of the old tests pass, and a few more to boot.
  • Loading branch information...
1 parent ad73e3f commit f9e2d4a3d33533270a54a523277d0b9bebd995cc @masak committed Jan 19, 2010
Showing with 719 additions and 575 deletions.
  1. +2 −2 Makefile.in
  2. +574 −215 lib/GGE/Exp.pm
  3. +137 −116 lib/GGE/Perl6Regex.pm
  4. +0 −236 lib/GGE/TreeSpider.pm
  5. +1 −1 t/perl6regex/01-regex.t
  6. +2 −0 t/perl6regex/rx_captures
  7. +1 −3 t/perl6regex/rx_modifiers
  8. +2 −2 test-regex
View
@@ -2,8 +2,8 @@ PERL6=<PERL6>
RAKUDO_DIR=<RAKUDO_DIR>
PERL6LIB='<PERL6LIB>:$(RAKUDO_DIR)'
-SOURCES=lib/GGE/Match.pm lib/GGE/Exp.pm lib/GGE/TreeSpider.pm \
- lib/GGE/OPTable.pm lib/GGE/Perl6Regex.pm lib/GGE.pm
+SOURCES=lib/GGE/Match.pm lib/GGE/Exp.pm lib/GGE/OPTable.pm \
+ lib/GGE/Perl6Regex.pm lib/GGE.pm
PIRS=$(SOURCES:.pm=.pir)
Oops, something went wrong. Retry.

0 comments on commit f9e2d4a

Please sign in to comment.