Class Parslet::Atoms::Named
In: lib/parslet/atoms/named.rb
lib/parslet/atoms/visitor.rb
Parent: Parslet::Atoms::Base

Names a match to influence tree construction.

Example:

  str('foo')            # will return 'foo',
  str('foo').as(:foo)   # will return :foo => 'foo'

Methods

accept  

Attributes

name  [R] 
parslet  [R] 

Public Instance methods

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

[Validate]