Class: Senko::Instruction

Inherits:
Struct
  • Object
show all
Defined in:
lib/senko/compiler/instruction.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#keyword_locationObject

Returns the value of attribute keyword_location

Returns:

  • (Object)

    the current value of keyword_location



64
65
66
# File 'lib/senko/compiler/instruction.rb', line 64

def keyword_location
  @keyword_location
end

#opObject

Returns the value of attribute op

Returns:

  • (Object)

    the current value of op



64
65
66
# File 'lib/senko/compiler/instruction.rb', line 64

def op
  @op
end

#payloadObject

Returns the value of attribute payload

Returns:

  • (Object)

    the current value of payload



64
65
66
# File 'lib/senko/compiler/instruction.rb', line 64

def payload
  @payload
end

#schemaObject

Returns the value of attribute schema

Returns:

  • (Object)

    the current value of schema



64
65
66
# File 'lib/senko/compiler/instruction.rb', line 64

def schema
  @schema
end

Instance Method Details

#keywordObject



65
66
67
# File 'lib/senko/compiler/instruction.rb', line 65

def keyword
  Instructions::KEYWORDS.fetch(op, op.to_s)
end