Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Remove Regex::P6Regex::Grammar's dependency on PCT::Grammar.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Oct 16, 2009
1 parent 40101f8 commit 4741f3d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Regex/P6Regex/Grammar.pm
@@ -1,4 +1,4 @@
grammar Regex::P6Regex::Grammar is PCT::Grammar;
grammar Regex::P6Regex::Grammar;

token ws { [ \s+ | '#' \N* ]* }

Expand Down
9 changes: 9 additions & 0 deletions src/cheats/p6regex-grammar.pir
Expand Up @@ -30,6 +30,15 @@
.tailcall self.'!protoregex'('mod_ident', 'action'=>action)
.end

.sub 'panic' :method
.param pmc args :slurpy

.local string message
message = join '', args

die message
.end

.sub 'obs' :method
.param string oldstr
.param pmc action :named('action') :optional
Expand Down

0 comments on commit 4741f3d

Please sign in to comment.