repetition.rb

Path: lib/parslet/atoms/repetition.rb
Last Update: Thu Apr 26 16:22:26 -0400 2012

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))

[Validate]