Permalink
Browse files

Implement <&foo> call syntax

  • Loading branch information...
1 parent 4333201 commit 407c52892f77e263e024b74107fbb855e8bcaae5 @sorear committed Feb 19, 2011
Showing with 7 additions and 1 deletion.
  1. +0 −1 TODO
  2. +7 −0 src/niecza
View
1 TODO
@@ -26,7 +26,6 @@ EASY
Stuff spectests are blocking on: "Block", "&hash", "writable $_",
"closure for", "ranges of chars", "gather for",
- "my regex / <&foo>",
At least parsing Int et al on my-decls would help a lot
View
@@ -31,6 +31,13 @@ method quote:m ($/) {
receiver => self.op_for_regex($/, $<quibble>.ast),
args => [ mklex($/, '$_') ]));
}
+
+# actually we need a few more special cases here.
+method assertion:variable ($/) {
+ make ::RxOp::Subrule.new(|node($/), regex =>
+ ::Op::CallSub.new(|node($/), invocant => $<variable>.ast,
+ positionals => [ ::Op::MakeCursor.new(|node($/)) ]));
+}
}
my $usage = q:to/EOM/;

0 comments on commit 407c528

Please sign in to comment.