Class: Sexp::Label
- Inherits:
-
Root
- Object
- Treetop::Runtime::SyntaxNode
- Root
- Sexp::Label
- Defined in:
- lib/parser/parser_nodes.rb
Overview
optional statement label
Instance Method Summary collapse
Methods inherited from Treetop::Runtime::SyntaxNode
#node_type, #recursive_inject, #recursive_inject_parent, #recursive_select, #value
Instance Method Details
#label ⇒ Object
968 969 970 |
# File 'lib/parser/parser_nodes.rb', line 968 def label recursive_select(Sexp::Identifier).first.node_value end |
#node_value ⇒ Object
972 973 974 |
# File 'lib/parser/parser_nodes.rb', line 972 def node_value label if respond_to?( :label ) end |