Class | Parslet::Atoms::Repetition |
In: |
lib/parslet/atoms/repetition.rb
lib/parslet/atoms/visitor.rb |
Parent: | Parslet::Atoms::Base |
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))
max | [R] | |
min | [R] | |
parslet | [R] |