Class: Sexpir::Binary
- Inherits:
-
Expression
- Object
- Ast
- Expression
- Sexpir::Binary
- Defined in:
- lib/sexpir/ast_sexp.rb,
lib/sexpir/ast.rb
Overview
Instance Attribute Summary collapse
-
#lhs ⇒ Object
Returns the value of attribute lhs.
-
#op ⇒ Object
Returns the value of attribute op.
-
#rhs ⇒ Object
Returns the value of attribute rhs.
Attributes inherited from Ast
Instance Method Summary collapse
Methods inherited from Ast
Instance Attribute Details
#lhs ⇒ Object
Returns the value of attribute lhs.
99 100 101 |
# File 'lib/sexpir/ast.rb', line 99 def lhs @lhs end |
#op ⇒ Object
Returns the value of attribute op.
99 100 101 |
# File 'lib/sexpir/ast.rb', line 99 def op @op end |
#rhs ⇒ Object
Returns the value of attribute rhs.
99 100 101 |
# File 'lib/sexpir/ast.rb', line 99 def rhs @rhs end |
Instance Method Details
#sexp ⇒ Object
186 187 188 |
# File 'lib/sexpir/ast_sexp.rb', line 186 def sexp "(#{op} #{lhs.sexp} #{rhs.sexp})" end |