Class: Crokus::LabeledStmt

Inherits:
Stmt
  • Object
show all
Defined in:
lib/crokus/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ast

#accept, #str

Constructor Details

#initialize(label, stmt) ⇒ LabeledStmt

Returns a new instance of LabeledStmt.



201
202
203
# File 'lib/crokus/ast.rb', line 201

def initialize label,stmt
  @label,@stmt=label,stmt
end

Instance Attribute Details

#labelObject

Returns the value of attribute label.



200
201
202
# File 'lib/crokus/ast.rb', line 200

def label
  @label
end

#stmtObject

Returns the value of attribute stmt.



200
201
202
# File 'lib/crokus/ast.rb', line 200

def stmt
  @stmt
end