asm

Provides support for dealing with EVM assembly instructions (e.g., disassembling them).

instructionIterator

// Iterator for disassembled EVM instructions
type instructionIterator struct {
    code    []byte
    pc      uint64
    arg     []byte
    op      vm.OpCode
    error   error
    started bool
}

Compiler

// Compiler contains information about the parsed source
// and holds the tokens for the program.
type Compiler struct {
    tokens []token
    binary []interface{}

    labels map[string]int

    pc, pos int

    debug bool
}

lexer

Last updated

Was this helpful?