struct StackMachine::Label

Overview

Struct for Label opcode

Defined in:

stackmachine/opcode.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(identifier : Symbol) #

[View source]

Instance Method Detail

def call(& : Symbol -> ) : Void #

Pass in a block to perform specified operation with the underlying identifier

Label.new.call do | identifier |
  do_something_with identifier
end

[View source]