package
Version:
v0.1.6
Opens a new window with list of versions in this module.
Published: May 23, 2022
License: Apache-2.0, MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
const (
OpLt Op = 2 + iota<<8
OpLeq
OpGt
OpGeq
OpEq
OpNeq
)
const (
OpShiftL Op = 6 + iota<<8
OpShiftR
)
const (
OpAdd Op = 8 + iota<<8
OpSub
)
const (
OpMul Op = 9 + iota<<8
OpDiv
OpFloorDiv
OpMod
)
const (
OpNeg Op = 10 + iota<<8
OpNot
OpLen
OpBitNot
OpID
)
const OpBitAnd Op = 5 + iota<<8
const OpBitOr Op = 3 + iota<<8
const OpBitXor Op = 4 + iota<<8
const OpConcat Op = 7 + iota<<8
const OpToNumber Op = 0x10000
OpToNumber is used in e.g. for loops
func (op Op) Precedence() int
Precedence returns the precedence of an operator (higher means binds more
tightly).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.