Class Parslet::Atoms::Entity
In: lib/parslet/atoms/entity.rb
lib/parslet/atoms/visitor.rb
Parent: Parslet::Atoms::Base

This wraps pieces of parslet definition and gives them a name. The wrapped piece is lazily evaluated and cached. This has two purposes:

  • Avoid infinite recursion during evaluation of the definition
  • Be able to print things by their name, not by their sometimes complicated content.

You don‘t normally use this directly, instead you should generated it by using the structuring method Parslet.rule.

Methods

accept   new   parslet   to_s_inner   try  

Attributes

block  [R] 
name  [R] 

Public Class methods

Public Instance methods

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

[Validate]