Class Parslet::Atoms::Lookahead
In: lib/parslet/atoms/visitor.rb
lib/parslet/atoms/lookahead.rb
Parent: Object

Either positive or negative lookahead, doesn‘t consume its input.

Example:

  str('foo').present? # matches when the input contains 'foo', but leaves it

Methods

accept   new   to_s_inner   try  

Attributes

bound_parslet  [R] 
positive  [R] 

Public Class methods

Public Instance methods

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

[Validate]