dsl.rb

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

A mixin module that defines operations that can be called on any subclass of Parslet::Atoms::Base. These operations make parslets atoms chainable and allow combination of parslet atoms to form bigger parsers.

Example:

  str('foo') >> str('bar')
  str('f').repeat
  any.absent?               # also called The Epsilon

[Validate]