Last active
March 25, 2021 22:45
-
-
Save cognominal/be3eb3d2943799cda70805adf73ba27a 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 Text { | |
rule TOP { <line>+ } | |
{ | |
my token ws { \h+ } | |
rule line { [\w+] + } | |
} | |
} | |
my $text = q:to<OZYMANDIAS>; | |
I met a traveller | |
from an antique land | |
OZYMANDIAS | |
say Text.parse($text); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment