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

Methods

accept   new  

Attributes

max  [R] 
min  [R] 
parslet  [R] 

Public Class methods

Public Instance methods

Call back visitors visit_repetition method. See parslet/export for an example.

[Validate]