Documentation ¶
Overview ¶
Package tok implements Functional Bus Description Language tokens.
Index ¶
- func Loc(t Token) string
- func Text(t Token, src []byte) string
- type Access
- type Add
- type AddEnable
- type And
- type Ass
- type Atomic
- type BitAnd
- type BitOr
- type BitString
- type Block
- type Bool
- type Bus
- type ByteWriteEnable
- type Clear
- type Colon
- type Comma
- type Comment
- type Config
- type Const
- type Dedent
- type Delay
- type Div
- type EnableInitValue
- type EnableResetValue
- type Eof
- type Eq
- type Error
- type Exp
- type Float
- type Functionality
- type Greater
- type GreaterEq
- type Groups
- type Ident
- type Import
- type InTrigger
- type Indent
- type InitValue
- type Int
- type Irq
- type LBrace
- type LBracket
- type LParen
- type LShift
- type Less
- type LessEq
- type Mask
- type Masters
- type Memory
- type Mul
- type Neg
- type Neq
- type Newline
- type None
- type Number
- type Operator
- type Or
- type OutTrigger
- type Param
- type Period
- type Proc
- type Property
- type QualIdent
- type RBrace
- type RBracket
- type RParen
- type RShift
- type Range
- type ReadLatency
- type ReadValue
- type Rem
- type Reset
- type ResetValue
- type Return
- type Semicolon
- type Size
- type Static
- type Status
- type Stream
- type String
- type Sub
- type Time
- type Token
- type Type
- type Width
- type Xor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Add ¶
type Add struct { // contains filtered or unexported fields } // +
func (Add) Precedence ¶
type And ¶
type And struct { // contains filtered or unexported fields } // &&
func (And) Precedence ¶
type BitAnd ¶
type BitAnd struct { // contains filtered or unexported fields } // &
func (BitAnd) Precedence ¶
type BitOr ¶
type BitOr struct { // contains filtered or unexported fields } // |
func (BitOr) Precedence ¶
type ByteWriteEnable ¶
type ByteWriteEnable struct {
// contains filtered or unexported fields
}
func (ByteWriteEnable) Name ¶
func (bwe ByteWriteEnable) Name() string
type Colon ¶
type Colon struct { // contains filtered or unexported fields } // :
func (Colon) Precedence ¶
type Div ¶
type Div struct { // contains filtered or unexported fields } // /
func (Div) Precedence ¶
type EnableInitValue ¶
type EnableInitValue struct {
// contains filtered or unexported fields
}
func (EnableInitValue) Name ¶
func (eiv EnableInitValue) Name() string
type EnableResetValue ¶
type EnableResetValue struct {
// contains filtered or unexported fields
}
func (EnableResetValue) Name ¶
func (erv EnableResetValue) Name() string
type Exp ¶
type Exp struct { // contains filtered or unexported fields } // **
func (Exp) Precedence ¶
type Functionality ¶
type Functionality interface { Token // contains filtered or unexported methods }
Various token types
type Greater ¶
type Greater struct { // contains filtered or unexported fields } // >
func (Greater) Precedence ¶
type GreaterEq ¶
type GreaterEq struct { // contains filtered or unexported fields } // >=
func (GreaterEq) Precedence ¶
type LShift ¶
type LShift struct { // contains filtered or unexported fields } // <<
func (LShift) Precedence ¶
type Less ¶
type Less struct { // contains filtered or unexported fields } // <
func (Less) Precedence ¶
type LessEq ¶
type LessEq struct { // contains filtered or unexported fields } // <=
func (LessEq) Precedence ¶
type Mul ¶
type Mul struct { // contains filtered or unexported fields } // *
func (Mul) Precedence ¶
type Neq ¶
type Neq struct { // contains filtered or unexported fields } // !=
func (Neq) Precedence ¶
type Number ¶
type Number interface { Token // contains filtered or unexported methods }
Various token types
type OutTrigger ¶
type OutTrigger struct {
// contains filtered or unexported fields
}
func (OutTrigger) Name ¶
func (ot OutTrigger) Name() string
type Period ¶
type Period struct { // contains filtered or unexported fields } // .
Currently unused tokens
type Property ¶
type Property interface { Token // contains filtered or unexported methods }
Various token types
type QualIdent ¶
type QualIdent struct { // contains filtered or unexported fields } // Qualified Identifier
type RShift ¶
type RShift struct { // contains filtered or unexported fields } // >>
func (RShift) Precedence ¶
type ReadLatency ¶
type ReadLatency struct {
// contains filtered or unexported fields
}
func (ReadLatency) Name ¶
func (rl ReadLatency) Name() string
type Rem ¶
type Rem struct { // contains filtered or unexported fields } // %
func (Rem) Precedence ¶
type ResetValue ¶
type ResetValue struct {
// contains filtered or unexported fields
}
func (ResetValue) Name ¶
func (rv ResetValue) Name() string
type Sub ¶
type Sub struct { // contains filtered or unexported fields } // -
func (Sub) Precedence ¶
type Token ¶
type Token interface { Start() int End() int Line() int Column() int Src() []byte Path() string Name() string }
Various token types
type Xor ¶
type Xor struct { // contains filtered or unexported fields } // ^
func (Xor) Precedence ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.