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

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  

Attributes

bound_parslet  [R] 
positive  [R] 

Public Instance methods

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

[Validate]