Skip to content

Instantly share code, notes, and snippets.

@tbrowder
Last active September 13, 2018 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbrowder/ad7019a21bc1c500e08fcd0f42ffb509 to your computer and use it in GitHub Desktop.
Save tbrowder/ad7019a21bc1c500e08fcd0f42ffb509 to your computer and use it in GitHub Desktop.
Modernize grammar syntax
There are several instances of some old regex syntax in the current rakudo grammar.
From a brief answer by @timotimo, I'm assuming those instances can be changed to:
<tok>**1 [1 use; require one instance of the token?; change to =>] <tok>
<tok>**0..1 [17 uses; require none or one?; change to =>] <tok>?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment