Class: SbuilderSexp::PrefixExpression

Inherits:
AbstactExpression show all
Defined in:
lib/parser/parser_nodes.rb

Direct Known Subclasses

QuantifyExpression, UnaryExpression

Instance Method Summary collapse

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_prefixObject

during traverse: show operator before ‘expression_val’



295
296
297
# File 'lib/parser/parser_nodes.rb', line 295

def expression_prefix
  operator
end

#operatorObject



302
303
304
# File 'lib/parser/parser_nodes.rb', line 302

def operator
  operator_node.text_value
end

#operator_nodeObject



299
300
301
# File 'lib/parser/parser_nodes.rb', line 299

def operator_node
  recursive_select( SbuilderSexp::Operator ).first
end