Created
December 15, 2014 16:50
-
-
Save anonymous/743d6b3915783a1a5853 to your computer and use it in GitHub Desktop.
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
grammar Sequence { | |
token TOP { <sequence>+ } | |
proto token sequence {*} | |
multi token sequence:sym<dna> { <[ACGTRYKMSWBDHVNX]>+ } | |
multi token sequence:sym<rna> { <[ACGURYKMSWBDHVNX]>+ } | |
multi token sequence:sym<aa> { <[A..Z]>+ } | |
} | |
say Sequence.parse("TATAKEKEKELKL"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment