Guest User

Untitled

a guest
Oct 21st, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. grammar Verb {
  2. token TOP {
  3. <root>
  4. <ending>
  5. }
  6. token root {
  7. (w+) <?{ ~$0 (elem) @root }>
  8. {
  9. token ending {
  10. (w+) <?{ ~$0 (elem) @ending }>
  11. {
  12. }
  13.  
  14. my @root = <go jump play>;
  15. my @ending = <ing es s ed>;
  16.  
  17. my $string = "going";
  18. my $match = Verb.parse($string);
  19. .Str.say for $match<root>;
Add Comment
Please, Sign In to add comment