Permalink
Browse files

[STATUS] updated

  • Loading branch information...
1 parent 3dcaf04 commit 6f47e219a8ac8ec558aa5b1afe72cc0924b2a150 @masak committed Jan 24, 2010
Showing with 12 additions and 21 deletions.
  1. +12 −17 STATUS
  2. +0 −4 t/perl6regex/rx_captures
View
@@ -15,15 +15,10 @@ value. (No real obstacle to that one; just haven't found it necessary.)
All tests pass in rx_metachars. A few tests are marked TODO in rx_charclass,
having to do with double-quoted literals. The test marked TODO in rx_backtrack
is marked TODO in PGE as well, and pmichaud has confirmed it's likely bogus.
+
Some tests had to be marked TODO in rx_modifiers, because they used lookahead,
which isn't implemented yet. Some TODOs in rx_captures were inherited from
-PGE, others await the implementation of subrules.
-
-There are two features I can see that need to be implemented for the rest
-of the tests to pass. The first is some kind of stacking of TreeSpider
-objects. This is needed for subrule calls, which form a sort of 'regex in a
-regex', both statically and dynamically. The second is a mechanism for
-building real Match objects, replete with numbered and named captures.
+PGE.
name tests status
--------------------------------------------------
@@ -54,24 +49,24 @@ Perl 6 rule features implemented
* anchors (^, $, ^^, $$, \b, \b)
* \c[...] and \C[...]
* cut operators (:, ::, :::, <commit>)
-
-
-Perl 6 rule features to-do
---------------------------
* capturing groups
* modifiers :i, :ignorecase, :s, :sigspace (with synonyms :w and :words)
-* composed character classes (<+alpha-[aeiou]>)
* negated character classes
* capturing subrules (<expr>)
* non-capturing subrules (<.expr>)
* negated subrules (<!expr>)
-* lookahead and lookbehind (<before> and <after>)
-* built-in rules: <null>, <fail>, <alpha>, <digit>, <alnum>,
- <upper>, <lower>, <xdigit>, <space>, <print>, <graph>,
- <blank>, <cntrl>, <punct>, <sp>, <lt>, <gt>, <dot>, <ws>,
- <p6rule>, <p5regexp>
+* built-in rules: <alpha>, <digit>, <alnum>, <upper>, <lower>,
+ <xdigit>, <space>, <cntrl>, <punct>
* backreferences ($0, $1, $<foo>)
* scalar subrule and subpattern aliases ($<foo>:=(...), $0:=(...))
+
+
+Perl 6 rule features to-do
+--------------------------
+* composed character classes (<+alpha-[aeiou]>)
+* lookahead and lookbehind (<before> and <after>)
+* built-in rules: <null>, <fail>, <print>, <graph>,
+ <blank>, <sp>, <lt>, <gt>, <dot>, <ws>, <p6rule>, <p5regexp>
* balanced delimited text (<GGE::Text::bracketed>)
* embedded closures ({{ puts "hello" }})
* :lang() modifier
@@ -38,19 +38,15 @@ $1=[ (.) (.) (.) ] (.) abcdefg /mob 5: <d @ 3>/ perl5 numbered captures $5
:s $<key>=[\w+] \= $<val>=[\S+] abc = 123 /mob<val>: <123 @ 7>/ named capture
:s (\w+) $<foo>=(\w+) (\w+) abc def ghi /mob<foo>: <def @ 4>/ mixing named and unnamed capture
:s (\w+) $<foo>=(\w+) (\w+) abc def ghi /mob 1: <ghi @ 8>/ mixing named and unnamed capture
-# todo :gge<no subrules yet>
<alpha> [ \- <alpha> ]? abc def ghi /mob<alpha> 0: <a @ 0>/ multiple subrule captures in same scope
[(.)$0]+ bookkeeper y backreference
-# todo :gge<no subrules yet>
(\w+) <+ws> $0 hello hello y backreference at end of string
[(.)$0]+ bookkeeper /mob 0 0: <o @ 1>/ backref $0[0]
[(.)$0]+ bookkeeper /mob 0 1: <k @ 3>/ backref $0[1]
[(.)$0]+ bookkeeper /mob 0 2: <e @ 5>/ backref $0[2]
(.)*x 123x /mob: <123x @ 0>/ repeated dot capture
-# todo :gge<no subrules yet>
$<key>=<alpha> 12ab34 /mob<key>: <a @ 2>/ alias capture
-# todo :gge<no subrules yet>
<key=alpha> 12ab34 /mob<key>: <a @ 2>/ alias capture
## vim: noexpandtab tabstop=4 shiftwidth=4

0 comments on commit 6f47e21

Please sign in to comment.