package
Version:
v0.0.0-...-94861f8
Opens a new window with list of versions in this module.
Published: May 3, 2017
License: BSD-3-Clause, Unlicense
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Compare(x Value, op scan.Type, y Value) bool
-
type Type
-
type Value
-
func BinaryOp(x Value, op scan.Type, y Value) (Value, error)
-
func MakeFromLiteral(lit string, tok scan.Type, prec uint) Value
-
func MakeInt64(x int64) Value
-
func MakeUint64(x uint64) Value
-
func Shift(x Value, op scan.Type, s uint) (Value, error)
-
func UnaryOp(op scan.Type, y Value, prec uint) Value
Compare compares two values.
Type is a valid constant type.
const (
Unknown Type = iota
Int
String
)
Various types.
type Value interface {
Type() Type
String() string
}
Value represents a constant value.
BinaryOp does a binary operation on two constant values.
MakeFromLiteral creates a constant value from a string.
MakeInt64 creates a constant value out of a int64.
MakeUint64 creates a constant value out of a uint64.
Shift applies a left or right shift on a constant value.
UnaryOp does a unary operation on a unary expression.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.