Class: SbuilderSexp::PrefixExpression
- Inherits:
-
AbstactExpression
- Object
- Treetop::Runtime::SyntaxNode
- Root
- AbstactExpression
- SbuilderSexp::PrefixExpression
- Defined in:
- lib/parser/parser_nodes.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#expression_prefix ⇒ Object
during traverse: show operator before ‘expression_val’.
- #operator ⇒ Object
- #operator_node ⇒ Object
Methods inherited from AbstactExpression
#expression_postfix, #expression_val, #expressions, #has_rhs, #lhs_node, #node_value, #rhs_node, #traverse
Methods inherited from Treetop::Runtime::SyntaxNode
#node_type, #node_value, #recursive_inject, #recursive_inject_parent, #recursive_select, #value
Instance Method Details
#expression_prefix ⇒ Object
during traverse: show operator before ‘expression_val’
295 296 297 |
# File 'lib/parser/parser_nodes.rb', line 295 def expression_prefix operator end |
#operator ⇒ Object
302 303 304 |
# File 'lib/parser/parser_nodes.rb', line 302 def operator operator_node.text_value end |
#operator_node ⇒ Object
299 300 301 |
# File 'lib/parser/parser_nodes.rb', line 299 def operator_node recursive_select( SbuilderSexp::Operator ).first end |