Path: | lib/parslet/atoms/repetition.rb |
Last Update: | Fri Jul 15 14:35:39 -0400 2016 |
Matches a parslet repeatedly.
Example:
str('a').repeat(1,3) # matches 'a' at least once, but at most three times str('a').maybe # matches 'a' if it is present in the input (repeat(0,1))