Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Revert "* Convert RxOp, Sig and Unit to MooseX::Declare. That's all o…
…f them. :-)" This reverts commit f4ddde8.
- Loading branch information
Audrey Tang
committed
Jul 20, 2010
1 parent
50423d2
commit 2a2ae2d
Showing
3 changed files
with
82 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,52 @@ | ||
| use strict; | ||
| use warnings; | ||
| use 5.010; | ||
| use MooseX::Declare; | ||
|
|
||
| use CgOp; | ||
|
|
||
| class RxOp { | ||
| { | ||
| package RxOp; | ||
| use Moose; | ||
|
|
||
| has zyg => (isa => 'ArrayRef[RxOp]', is => 'ro'); | ||
|
|
||
| __PACKAGE__->meta->make_immutable; | ||
| no Moose; | ||
| } | ||
|
|
||
| class RxOp::String extends RxOp { | ||
| { | ||
| package RxOp::String; | ||
| use Moose; | ||
| extends 'RxOp'; | ||
|
|
||
| has text => (isa => 'Str', is => 'ro', required => 1); | ||
|
|
||
| __PACKAGE__->meta->make_immutable; | ||
| no Moose; | ||
| } | ||
|
|
||
| class RxOp::Quantifier extends RxOp { | ||
| { | ||
| package RxOp::Quantifier; | ||
| use Moose; | ||
| extends 'RxOp'; | ||
|
|
||
| has type => (isa => 'Str', is => 'ro', required => 1); | ||
| # ? + * only | ||
| # zyg * 1 | ||
|
|
||
| __PACKAGE__->meta->make_immutable; | ||
| no Moose; | ||
| } | ||
|
|
||
| class RxOp::Sequence extends RxOp { | ||
| { | ||
| package RxOp::Sequence; | ||
| use Moose; | ||
| extends 'RxOp'; | ||
|
|
||
| # zyg * N | ||
|
|
||
| __PACKAGE__->meta->make_immutable; | ||
| no Moose; | ||
| } | ||
|
|
||
| 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters