Class: SbuilderSexp::Assignment
- Inherits:
-
UnlabeledStatement
- Object
- Treetop::Runtime::SyntaxNode
- Root
- Statement
- UnlabeledStatement
- SbuilderSexp::Assignment
- Defined in:
- lib/parser/parser_nodes.rb
Instance Method Summary collapse
-
#lvalue ⇒ LValue
Where to assign to.
-
#rvalue ⇒ Expression
Expression to assign.
Methods inherited from UnlabeledStatement
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
#lvalue ⇒ LValue
Returns where to assign to.
966 967 968 |
# File 'lib/parser/parser_nodes.rb', line 966 def lvalue recursive_select( SbuilderSexp::LValue).first end |
#rvalue ⇒ Expression
Returns expression to assign.
971 972 973 974 |
# File 'lib/parser/parser_nodes.rb', line 971 def rvalue elements[1] # recursive_select( SbuilderSexp::Expression).first end |