Class: Loxxy::Ast::LoxLiteralExpr
- Defined in:
- lib/loxxy/ast/lox_literal_expr.rb
Instance Attribute Summary collapse
Attributes inherited from LoxNode
Instance Method Summary collapse
-
#initialize(aPosition, aLiteral) ⇒ LoxLiteralExpr
constructor
A new instance of LoxLiteralExpr.
Methods inherited from LoxNode
Methods included from ASTVisitee
Constructor Details
#initialize(aPosition, aLiteral) ⇒ LoxLiteralExpr
Returns a new instance of LoxLiteralExpr.
13 14 15 16 |
# File 'lib/loxxy/ast/lox_literal_expr.rb', line 13 def initialize(aPosition, aLiteral) super(aPosition) @literal = aLiteral end |
Instance Attribute Details
#literal ⇒ Loxxy::Datatype::BuiltinDatatype (readonly)
9 10 11 |
# File 'lib/loxxy/ast/lox_literal_expr.rb', line 9 def literal @literal end |