Class: SbuilderSexp::Assignment

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

Instance Method Summary collapse

Methods inherited from UnlabeledStatement

#statement_label

Methods inherited from Statement

#find_labelnode, #get_statement, #node_value, #statement_label, #statement_val, #statements, #traverse

Methods inherited from Treetop::Runtime::SyntaxNode

#node_type, #node_value, #recursive_inject, #recursive_inject_parent, #recursive_select, #value

Instance Method Details

#lvalueLValue

Returns where to assign to.

Returns:

  • (LValue)

    where to assign to



966
967
968
# File 'lib/parser/parser_nodes.rb', line 966

def lvalue
  recursive_select( SbuilderSexp::LValue).first      
end

#rvalueExpression

Returns expression to assign.

Returns:



971
972
973
974
# File 'lib/parser/parser_nodes.rb', line 971

def rvalue
  elements[1]
  # recursive_select( SbuilderSexp::Expression).first            
end