class WAG::Local

Local is not an instruction, but a nested keyword.

Attributes

label[R]
type[R]

Public Class Methods

new(label, type) click to toggle source
# File lib/wag/local.rb, line 10
def initialize(label, type)
  @label = WAG::Label.from(label)
  @type = WAG::Type.from(type)
end

Public Instance Methods

to_sexpr() click to toggle source
# File lib/wag/local.rb, line 15
def to_sexpr
  [:local, label.to_sexpr, type.to_sexpr]
end