expr

package module
v0.0.0-...-d32d3b3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compile

func Compile(in io.Reader) []byte

func Run

func Run(insts []byte) float64

Types

type Compiler

type Compiler struct {
	// contains filtered or unexported fields
}

type Instruction

type Instruction uint8
const (
	InstInvalid Instruction = iota
	InstFloatLiteral
	InstPlus
	InstMinus
	InstLog
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL