Guest User

Untitled

a guest
Jul 5th, 2024
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. unit class TokenizerActions;
  2.  
  3. method TOP($/) {
  4. make $<arg>.join(' / ');
  5. }
  6.  
  7. method arg:sym<quoted-str>($/) {
  8. my $escaped = S:g/ \\ \' /'/ given $<contents>.Str.clone;
  9. make $escaped;
  10. }
  11.  
  12. method arg:sym<str>($/) {
  13. make $/.Str;
  14. }
  15.  
  16. # Cannot assign to a readonly variable or a value
  17. # in method arg:sym<quoted-str> at [redacted]/TokenizerActions.rakumod (TokenizerActions) line 8
  18. # in regex arg:sym<quoted-str> at [redacted]/Tokenizer.rakumod (Tokenizer) line 5
  19. # in regex arg at [redacted]/Tokenizer.rakumod (Tokenizer) line 4
  20. # in regex TOP at [redacted]/Tokenizer.rakumod (Tokenizer) line 3
Advertisement
Add Comment
Please, Sign In to add comment