expr

package
v0.0.0-...-a5243c8 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parser

func Parser() parseg.Parser[Expr]

Types

type Expr

type Expr interface {
	String() string
	// contains filtered or unexported methods
}
var (
	Zero Expr = constant(0)
	One  Expr = constant(1)
)

type Op

type Op int
const (
	UnknownOperator Op = iota
	Add
	Sub
	Mul
	Div
)

func (Op) String

func (x Op) String() string

Jump to

Keyboard shortcuts

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