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
| use v6; | |
| grammar Simpl { | |
| token xxx { 'x' } | |
| token c { 'c' } | |
| token end { '!' } | |
| token xc { <xxx>*<c> } | |
| token xend { <xxx>*<end> } | |
| } | |
| my $sample="cx!"; | |
| my $answer=($sample ~~ /<Simpl::xend>/); | |
| say $answer.perl; |
Author
clsn
commented
May 7, 2010
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment