Class: Flexr::IR::Rule
- Inherits:
-
Struct
- Object
- Struct
- Flexr::IR::Rule
- Defined in:
- lib/flexr/ir.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#bol_only ⇒ Object
Returns the value of attribute bol_only.
-
#end_anchor ⇒ Object
Returns the value of attribute end_anchor.
-
#index ⇒ Object
Returns the value of attribute index.
-
#location ⇒ Object
Returns the value of attribute location.
-
#pattern_conditions ⇒ Object
Returns the value of attribute pattern_conditions.
-
#patterns ⇒ Object
Returns the value of attribute patterns.
-
#states ⇒ Object
Returns the value of attribute states.
-
#trailing ⇒ Object
Returns the value of attribute trailing.
Instance Method Summary collapse
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action
5 6 7 |
# File 'lib/flexr/ir.rb', line 5 def action @action end |
#bol_only ⇒ Object
Returns the value of attribute bol_only
5 6 7 |
# File 'lib/flexr/ir.rb', line 5 def bol_only @bol_only end |
#end_anchor ⇒ Object
Returns the value of attribute end_anchor
5 6 7 |
# File 'lib/flexr/ir.rb', line 5 def end_anchor @end_anchor end |
#index ⇒ Object
Returns the value of attribute index
5 6 7 |
# File 'lib/flexr/ir.rb', line 5 def index @index end |
#location ⇒ Object
Returns the value of attribute location
5 6 7 |
# File 'lib/flexr/ir.rb', line 5 def location @location end |
#pattern_conditions ⇒ Object
Returns the value of attribute pattern_conditions
5 6 7 |
# File 'lib/flexr/ir.rb', line 5 def pattern_conditions @pattern_conditions end |
#patterns ⇒ Object
Returns the value of attribute patterns
5 6 7 |
# File 'lib/flexr/ir.rb', line 5 def patterns @patterns end |
#states ⇒ Object
Returns the value of attribute states
5 6 7 |
# File 'lib/flexr/ir.rb', line 5 def states @states end |
#trailing ⇒ Object
Returns the value of attribute trailing
5 6 7 |
# File 'lib/flexr/ir.rb', line 5 def trailing @trailing end |
Instance Method Details
#emit? ⇒ Boolean
14 15 16 |
# File 'lib/flexr/ir.rb', line 14 def emit? action.is_a?(Array) && action.first == :emit end |
#skip? ⇒ Boolean
10 11 12 |
# File 'lib/flexr/ir.rb', line 10 def skip? action == :skip end |