Class: Spectre::Directives::NoActionDirective
- Inherits:
-
Spectre::Directive
- Object
- Node
- Spectre::Directive
- Spectre::Directives::NoActionDirective
- Defined in:
- lib/spectre/generic/directives.rb
Overview
Causes semantic actions not to be triggered regardless of wheter a match was successful.
Shortcut: noaction_d
Instance Attribute Summary
Attributes inherited from Spectre::Directive
#iter_skipper, #iter_transformation, #pre_skip
Attributes inherited from Node
#actions, #backtrace, #left, #parent, #parser, #policy, #right, #symbols
Instance Method Summary collapse
Methods inherited from Spectre::Directive
#[], #initialize, #parse, policy, policy!, skipper!, transformation!
Methods inherited from Node
#%, #&, #*, #**, #+, #-, #-@, #>>, #[], #^, #backtrack, #chain, #closure, #closure=, #closure?, #find, #initialize, #initialize_copy, #leaf?, #parse, #replace_with, #root?, #shallow_copy, #to_p, #|, #~@
Constructor Details
This class inherits a constructor from Spectre::Directive
Instance Method Details
#inspect ⇒ Object
39 40 41 |
# File 'lib/spectre/generic/directives.rb', line 39 def inspect "[noaction_d:#{@left.inspect}]" end |