Advertisement
Guest User

Untitled

a guest
Jul 24th, 2016
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. grammar DATA {
  2. token TOP { <header> \s? \n }
  3. token header { \w+ % \s }
  4. }
  5.  
  6. my $r = DATA.parse("a b \n");
  7. say $r;
  8.  
  9. $r = DATA.parse("a b\n");
  10. say $r;
  11.  
  12.  
  13. #「a b
  14. #」
  15. # header => 「a b」
  16. # (Any)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement