Class: Rattler::Parsers::SemanticAssert

Inherits:
DirectAction show all
Defined in:
lib/rattler/parsers/semantic_assert.rb

Overview

SemanticAssert decorates a parser to peform a symantic action on success by evaluating ruby code and succeed if the result is a true value.

Author:

  • Jason Arhart

Method Summary

Methods inherited from DirectAction

[], #bind, #bindable_code, #parse, parsed

Methods included from Combining

#capturing?, #with_ws

Methods inherited from Parser

#&, #capturing?, #labeled?, #one_or_more, #optional, parsed, #skip, #variable_capture_count?, #with_ws, #zero_or_more, #|

Methods inherited from Util::Node

#==, [], #[], #attrs, #can_equal?, #child, #children, #each, #empty?, #eql?, #initialize, #inspect, #method_missing, #name, #respond_to?, #same_contents?, #to_graphviz, #with_attrs, #with_attrs!, #with_children

Constructor Details

This class inherits a constructor from Rattler::Util::Node

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Rattler::Util::Node