tok

package
v0.0.0-...-ea60fba Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorLoc

func ErrorLoc(err error, src []byte) string

ErrorLoc returns error token location.

func Loc

func Loc(t Token) string

Loc returns location of the token within the file in "line:column" format.

func Text

func Text(t Token, src []byte) string

Text returns token text from the source.

Types

type Access

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

func (Access) Column

func (a Access) Column() int

func (Access) End

func (a Access) End() int

func (Access) Line

func (a Access) Line() int

func (Access) Name

func (a Access) Name() string

func (Access) Start

func (a Access) Start() int

type Add

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

+

func (Add) Column

func (a Add) Column() int

func (Add) End

func (a Add) End() int

func (Add) Line

func (a Add) Line() int

func (Add) Name

func (a Add) Name() string

func (Add) Precedence

func (a Add) Precedence() int

func (Add) Start

func (a Add) Start() int

type AddEnable

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

func (AddEnable) Column

func (ae AddEnable) Column() int

func (AddEnable) End

func (ae AddEnable) End() int

func (AddEnable) Line

func (ae AddEnable) Line() int

func (AddEnable) Name

func (ae AddEnable) Name() string

func (AddEnable) Start

func (ae AddEnable) Start() int

type And

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

&&

func (And) Column

func (a And) Column() int

func (And) End

func (a And) End() int

func (And) Line

func (a And) Line() int

func (And) Name

func (a And) Name() string

func (And) Precedence

func (a And) Precedence() int

func (And) Start

func (a And) Start() int

type Ass

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

=

func (Ass) Column

func (a Ass) Column() int

func (Ass) End

func (a Ass) End() int

func (Ass) Line

func (a Ass) Line() int

func (Ass) Name

func (a Ass) Name() string

func (Ass) Start

func (a Ass) Start() int

type Atomic

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

func (Atomic) Column

func (a Atomic) Column() int

func (Atomic) End

func (a Atomic) End() int

func (Atomic) Line

func (a Atomic) Line() int

func (Atomic) Name

func (a Atomic) Name() string

func (Atomic) Start

func (a Atomic) Start() int

type BitAnd

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

&

func (BitAnd) Column

func (ba BitAnd) Column() int

func (BitAnd) End

func (ba BitAnd) End() int

func (BitAnd) Line

func (ba BitAnd) Line() int

func (BitAnd) Name

func (ba BitAnd) Name() string

func (BitAnd) Precedence

func (ba BitAnd) Precedence() int

func (BitAnd) Start

func (ba BitAnd) Start() int

type BitOr

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

|

func (BitOr) Column

func (bo BitOr) Column() int

func (BitOr) End

func (bo BitOr) End() int

func (BitOr) Line

func (bo BitOr) Line() int

func (BitOr) Name

func (bo BitOr) Name() string

func (BitOr) Precedence

func (bo BitOr) Precedence() int

func (BitOr) Start

func (bo BitOr) Start() int

type BitString

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

func (BitString) Column

func (bs BitString) Column() int

func (BitString) End

func (bs BitString) End() int

func (BitString) Line

func (bs BitString) Line() int

func (BitString) Name

func (bs BitString) Name() string

func (BitString) Start

func (bs BitString) Start() int

type Block

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

func (Block) Column

func (b Block) Column() int

func (Block) End

func (b Block) End() int

func (Block) Line

func (b Block) Line() int

func (Block) Name

func (b Block) Name() string

func (Block) Start

func (b Block) Start() int

type Bool

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

func (Bool) Column

func (b Bool) Column() int

func (Bool) End

func (b Bool) End() int

func (Bool) Line

func (b Bool) Line() int

func (Bool) Name

func (b Bool) Name() string

func (Bool) Start

func (b Bool) Start() int

type Bus

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

func (Bus) Column

func (b Bus) Column() int

func (Bus) End

func (b Bus) End() int

func (Bus) Line

func (b Bus) Line() int

func (Bus) Name

func (b Bus) Name() string

func (Bus) Start

func (b Bus) Start() int

type ByteWriteEnable

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

func (ByteWriteEnable) Column

func (bwe ByteWriteEnable) Column() int

func (ByteWriteEnable) End

func (bwe ByteWriteEnable) End() int

func (ByteWriteEnable) Line

func (bwe ByteWriteEnable) Line() int

func (ByteWriteEnable) Name

func (bwe ByteWriteEnable) Name() string

func (ByteWriteEnable) Start

func (bwe ByteWriteEnable) Start() int

type Clear

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

func (Clear) Column

func (c Clear) Column() int

func (Clear) End

func (c Clear) End() int

func (Clear) Line

func (c Clear) Line() int

func (Clear) Name

func (c Clear) Name() string

func (Clear) Start

func (c Clear) Start() int

type Colon

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

: - currently unused

func (Colon) Column

func (c Colon) Column() int

func (Colon) End

func (c Colon) End() int

func (Colon) Line

func (c Colon) Line() int

func (Colon) Name

func (c Colon) Name() string

func (Colon) Start

func (c Colon) Start() int

type Comma

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

,

func (Comma) Column

func (c Comma) Column() int

func (Comma) End

func (c Comma) End() int

func (Comma) Line

func (c Comma) Line() int

func (Comma) Name

func (c Comma) Name() string

func (Comma) Start

func (c Comma) Start() int

type Comment

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

func (Comment) Column

func (c Comment) Column() int

func (Comment) End

func (c Comment) End() int

func (Comment) Line

func (c Comment) Line() int

func (Comment) Name

func (c Comment) Name() string

func (Comment) Start

func (c Comment) Start() int

type Config

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

func (Config) Column

func (c Config) Column() int

func (Config) End

func (c Config) End() int

func (Config) Line

func (c Config) Line() int

func (Config) Name

func (c Config) Name() string

func (Config) Start

func (c Config) Start() int

type Const

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

func (Const) Column

func (c Const) Column() int

func (Const) End

func (c Const) End() int

func (Const) Line

func (c Const) Line() int

func (Const) Name

func (c Const) Name() string

func (Const) Start

func (c Const) Start() int

type Dedent

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

Indent decrement

func (Dedent) Column

func (d Dedent) Column() int

func (Dedent) End

func (d Dedent) End() int

func (Dedent) Line

func (d Dedent) Line() int

func (Dedent) Name

func (d Dedent) Name() string

func (Dedent) Start

func (d Dedent) Start() int

type Delay

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

func (Delay) Column

func (d Delay) Column() int

func (Delay) End

func (d Delay) End() int

func (Delay) Line

func (d Delay) Line() int

func (Delay) Name

func (d Delay) Name() string

func (Delay) Start

func (d Delay) Start() int

type Div

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

/

func (Div) Column

func (d Div) Column() int

func (Div) End

func (d Div) End() int

func (Div) Line

func (d Div) Line() int

func (Div) Name

func (d Div) Name() string

func (Div) Precedence

func (d Div) Precedence() int

func (Div) Start

func (d Div) Start() int

type EnableInitValue

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

func (EnableInitValue) Column

func (eiv EnableInitValue) Column() int

func (EnableInitValue) End

func (eiv EnableInitValue) End() int

func (EnableInitValue) Line

func (eiv EnableInitValue) Line() int

func (EnableInitValue) Name

func (eiv EnableInitValue) Name() string

func (EnableInitValue) Start

func (eiv EnableInitValue) Start() int

type EnableResetValue

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

func (EnableResetValue) Column

func (erv EnableResetValue) Column() int

func (EnableResetValue) End

func (erv EnableResetValue) End() int

func (EnableResetValue) Line

func (erv EnableResetValue) Line() int

func (EnableResetValue) Name

func (erv EnableResetValue) Name() string

func (EnableResetValue) Start

func (erv EnableResetValue) Start() int

type Eof

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

End of file

func (Eof) Column

func (e Eof) Column() int

func (Eof) End

func (e Eof) End() int

func (Eof) Line

func (e Eof) Line() int

func (Eof) Name

func (e Eof) Name() string

func (Eof) Start

func (e Eof) Start() int

type Eq

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

==

func (Eq) Column

func (e Eq) Column() int

func (Eq) End

func (e Eq) End() int

func (Eq) Line

func (e Eq) Line() int

func (Eq) Name

func (e Eq) Name() string

func (Eq) Precedence

func (e Eq) Precedence() int

func (Eq) Start

func (e Eq) Start() int

type Error

type Error struct {
	Tok Token
	Msg string
}

func (Error) Error

func (e Error) Error() string

type Exp

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

**

func (Exp) Column

func (e Exp) Column() int

func (Exp) End

func (e Exp) End() int

func (Exp) Line

func (e Exp) Line() int

func (Exp) Name

func (e Exp) Name() string

func (Exp) Precedence

func (e Exp) Precedence() int

func (Exp) Start

func (e Exp) Start() int

type Functionality

type Functionality interface {
	Token
	// contains filtered or unexported methods
}

type Greater

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

>

func (Greater) Column

func (g Greater) Column() int

func (Greater) End

func (g Greater) End() int

func (Greater) Line

func (g Greater) Line() int

func (Greater) Name

func (g Greater) Name() string

func (Greater) Precedence

func (g Greater) Precedence() int

func (Greater) Start

func (g Greater) Start() int

type GreaterEq

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

>=

func (GreaterEq) Column

func (ge GreaterEq) Column() int

func (GreaterEq) End

func (ge GreaterEq) End() int

func (GreaterEq) Line

func (ge GreaterEq) Line() int

func (GreaterEq) Name

func (ge GreaterEq) Name() string

func (GreaterEq) Precedence

func (ge GreaterEq) Precedence() int

func (GreaterEq) Start

func (ge GreaterEq) Start() int

type Groups

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

func (Groups) Column

func (g Groups) Column() int

func (Groups) End

func (g Groups) End() int

func (Groups) Line

func (g Groups) Line() int

func (Groups) Name

func (g Groups) Name() string

func (Groups) Start

func (g Groups) Start() int

type Ident

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

Identifier

func (Ident) Column

func (i Ident) Column() int

func (Ident) End

func (i Ident) End() int

func (Ident) Line

func (i Ident) Line() int

func (Ident) Name

func (i Ident) Name() string

func (Ident) Start

func (i Ident) Start() int

type Import

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

func (Import) Column

func (i Import) Column() int

func (Import) End

func (i Import) End() int

func (Import) Line

func (i Import) Line() int

func (Import) Name

func (i Import) Name() string

func (Import) Start

func (i Import) Start() int

type InTrigger

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

func (InTrigger) Column

func (it InTrigger) Column() int

func (InTrigger) End

func (it InTrigger) End() int

func (InTrigger) Line

func (it InTrigger) Line() int

func (InTrigger) Name

func (it InTrigger) Name() string

func (InTrigger) Start

func (it InTrigger) Start() int

type Indent

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

Indent increment

func (Indent) Column

func (i Indent) Column() int

func (Indent) End

func (i Indent) End() int

func (Indent) Line

func (i Indent) Line() int

func (Indent) Name

func (i Indent) Name() string

func (Indent) Start

func (i Indent) Start() int

type InitValue

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

func (InitValue) Column

func (iv InitValue) Column() int

func (InitValue) End

func (iv InitValue) End() int

func (InitValue) Line

func (iv InitValue) Line() int

func (InitValue) Name

func (iv InitValue) Name() string

func (InitValue) Start

func (iv InitValue) Start() int

type Int

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

func (Int) Column

func (i Int) Column() int

func (Int) End

func (i Int) End() int

func (Int) Line

func (i Int) Line() int

func (Int) Name

func (i Int) Name() string

func (Int) Start

func (i Int) Start() int

type Irq

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

func (Irq) Column

func (i Irq) Column() int

func (Irq) End

func (i Irq) End() int

func (Irq) Line

func (i Irq) Line() int

func (Irq) Name

func (i Irq) Name() string

func (Irq) Start

func (i Irq) Start() int

type LeftBrace

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

{ - currently unused

func (LeftBrace) Column

func (lb LeftBrace) Column() int

func (LeftBrace) End

func (lb LeftBrace) End() int

func (LeftBrace) Line

func (lb LeftBrace) Line() int

func (LeftBrace) Name

func (lb LeftBrace) Name() string

func (LeftBrace) Start

func (lb LeftBrace) Start() int

type LeftBracket

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

[

func (LeftBracket) Column

func (lb LeftBracket) Column() int

func (LeftBracket) End

func (lb LeftBracket) End() int

func (LeftBracket) Line

func (lb LeftBracket) Line() int

func (LeftBracket) Name

func (lb LeftBracket) Name() string

func (LeftBracket) Start

func (lb LeftBracket) Start() int

type LeftParen

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

(

func (LeftParen) Column

func (lp LeftParen) Column() int

func (LeftParen) End

func (lp LeftParen) End() int

func (LeftParen) Line

func (lp LeftParen) Line() int

func (LeftParen) Name

func (lp LeftParen) Name() string

func (LeftParen) Start

func (lp LeftParen) Start() int

type LeftShift

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

<<

func (LeftShift) Column

func (ls LeftShift) Column() int

func (LeftShift) End

func (ls LeftShift) End() int

func (LeftShift) Line

func (ls LeftShift) Line() int

func (LeftShift) Name

func (ls LeftShift) Name() string

func (LeftShift) Precedence

func (ls LeftShift) Precedence() int

func (LeftShift) Start

func (ls LeftShift) Start() int

type Less

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

<

func (Less) Column

func (l Less) Column() int

func (Less) End

func (l Less) End() int

func (Less) Line

func (l Less) Line() int

func (Less) Name

func (l Less) Name() string

func (Less) Precedence

func (l Less) Precedence() int

func (Less) Start

func (l Less) Start() int

type LessEq

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

<=

func (LessEq) Column

func (le LessEq) Column() int

func (LessEq) End

func (le LessEq) End() int

func (LessEq) Line

func (le LessEq) Line() int

func (LessEq) Name

func (le LessEq) Name() string

func (LessEq) Precedence

func (le LessEq) Precedence() int

func (LessEq) Start

func (le LessEq) Start() int

type Mask

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

func (Mask) Column

func (m Mask) Column() int

func (Mask) End

func (m Mask) End() int

func (Mask) Line

func (m Mask) Line() int

func (Mask) Name

func (m Mask) Name() string

func (Mask) Start

func (m Mask) Start() int

type Masters

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

func (Masters) Column

func (m Masters) Column() int

func (Masters) End

func (m Masters) End() int

func (Masters) Line

func (m Masters) Line() int

func (Masters) Name

func (m Masters) Name() string

func (Masters) Start

func (m Masters) Start() int

type Memory

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

func (Memory) Column

func (m Memory) Column() int

func (Memory) End

func (m Memory) End() int

func (Memory) Line

func (m Memory) Line() int

func (Memory) Name

func (m Memory) Name() string

func (Memory) Start

func (m Memory) Start() int

type Mul

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

*

func (Mul) Column

func (m Mul) Column() int

func (Mul) End

func (m Mul) End() int

func (Mul) Line

func (m Mul) Line() int

func (Mul) Name

func (m Mul) Name() string

func (Mul) Precedence

func (m Mul) Precedence() int

func (Mul) Start

func (m Mul) Start() int

type Neg

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

!

func (Neg) Column

func (n Neg) Column() int

func (Neg) End

func (n Neg) End() int

func (Neg) Line

func (n Neg) Line() int

func (Neg) Name

func (n Neg) Name() string

func (Neg) Start

func (n Neg) Start() int

type Neq

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

!=

func (Neq) Column

func (n Neq) Column() int

func (Neq) End

func (n Neq) End() int

func (Neq) Line

func (n Neq) Line() int

func (Neq) Name

func (n Neq) Name() string

func (Neq) Precedence

func (n Neq) Precedence() int

func (Neq) Start

func (n Neq) Start() int

type Newline

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

func (Newline) Column

func (n Newline) Column() int

func (Newline) End

func (n Newline) End() int

func (Newline) Line

func (n Newline) Line() int

func (Newline) Name

func (n Newline) Name() string

func (Newline) Start

func (n Newline) Start() int

type None

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

func (None) Column

func (n None) Column() int

func (None) End

func (n None) End() int

func (None) Line

func (n None) Line() int

func (None) Name

func (n None) Name() string

func (None) Start

func (n None) Start() int

type Number

type Number interface {
	Token
	// contains filtered or unexported methods
}

type Operator

type Operator interface {
	Token
	Precedence() int
}

type Or

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

||

func (Or) Column

func (o Or) Column() int

func (Or) End

func (o Or) End() int

func (Or) Line

func (o Or) Line() int

func (Or) Name

func (o Or) Name() string

func (Or) Precedence

func (o Or) Precedence() int

func (Or) Start

func (o Or) Start() int

type OutTrigger

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

func (OutTrigger) Column

func (ot OutTrigger) Column() int

func (OutTrigger) End

func (ot OutTrigger) End() int

func (OutTrigger) Line

func (ot OutTrigger) Line() int

func (OutTrigger) Name

func (ot OutTrigger) Name() string

func (OutTrigger) Start

func (ot OutTrigger) Start() int

type Param

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

func (Param) Column

func (p Param) Column() int

func (Param) End

func (p Param) End() int

func (Param) Line

func (p Param) Line() int

func (Param) Name

func (p Param) Name() string

func (Param) Start

func (p Param) Start() int

type Period

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

. - currently unused

func (Period) Column

func (p Period) Column() int

func (Period) End

func (p Period) End() int

func (Period) Line

func (p Period) Line() int

func (Period) Name

func (p Period) Name() string

func (Period) Start

func (p Period) Start() int

type Proc

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

func (Proc) Column

func (p Proc) Column() int

func (Proc) End

func (p Proc) End() int

func (Proc) Line

func (p Proc) Line() int

func (Proc) Name

func (p Proc) Name() string

func (Proc) Start

func (p Proc) Start() int

type Property

type Property interface {
	Token
	// contains filtered or unexported methods
}

type QualIdent

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

Qualified Identifier

func (QualIdent) Column

func (qi QualIdent) Column() int

func (QualIdent) End

func (qi QualIdent) End() int

func (QualIdent) Line

func (qi QualIdent) Line() int

func (QualIdent) Name

func (qi QualIdent) Name() string

func (QualIdent) Start

func (qi QualIdent) Start() int

type Range

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

func (Range) Column

func (r Range) Column() int

func (Range) End

func (r Range) End() int

func (Range) Line

func (r Range) Line() int

func (Range) Name

func (r Range) Name() string

func (Range) Start

func (r Range) Start() int

type ReadLatency

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

func (ReadLatency) Column

func (rl ReadLatency) Column() int

func (ReadLatency) End

func (rl ReadLatency) End() int

func (ReadLatency) Line

func (rl ReadLatency) Line() int

func (ReadLatency) Name

func (rl ReadLatency) Name() string

func (ReadLatency) Start

func (rl ReadLatency) Start() int

type ReadValue

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

func (ReadValue) Column

func (rv ReadValue) Column() int

func (ReadValue) End

func (rv ReadValue) End() int

func (ReadValue) Line

func (rv ReadValue) Line() int

func (ReadValue) Name

func (rv ReadValue) Name() string

func (ReadValue) Start

func (rv ReadValue) Start() int

type Real

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

func (Real) Column

func (r Real) Column() int

func (Real) End

func (r Real) End() int

func (Real) Line

func (r Real) Line() int

func (Real) Name

func (r Real) Name() string

func (Real) Start

func (r Real) Start() int

type Rem

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

%

func (Rem) Column

func (r Rem) Column() int

func (Rem) End

func (r Rem) End() int

func (Rem) Line

func (r Rem) Line() int

func (Rem) Name

func (r Rem) Name() string

func (Rem) Precedence

func (r Rem) Precedence() int

func (Rem) Start

func (r Rem) Start() int

type Reset

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

func (Reset) Column

func (r Reset) Column() int

func (Reset) End

func (r Reset) End() int

func (Reset) Line

func (r Reset) Line() int

func (Reset) Name

func (r Reset) Name() string

func (Reset) Start

func (r Reset) Start() int

type ResetValue

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

func (ResetValue) Column

func (rv ResetValue) Column() int

func (ResetValue) End

func (rv ResetValue) End() int

func (ResetValue) Line

func (rv ResetValue) Line() int

func (ResetValue) Name

func (rv ResetValue) Name() string

func (ResetValue) Start

func (rv ResetValue) Start() int

type Return

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

func (Return) Column

func (r Return) Column() int

func (Return) End

func (r Return) End() int

func (Return) Line

func (r Return) Line() int

func (Return) Name

func (r Return) Name() string

func (Return) Start

func (r Return) Start() int

type RightBrace

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

} - currently unused

func (RightBrace) Column

func (rb RightBrace) Column() int

func (RightBrace) End

func (rb RightBrace) End() int

func (RightBrace) Line

func (rb RightBrace) Line() int

func (RightBrace) Name

func (rb RightBrace) Name() string

func (RightBrace) Start

func (rb RightBrace) Start() int

type RightBracket

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

]

func (RightBracket) Column

func (rb RightBracket) Column() int

func (RightBracket) End

func (rb RightBracket) End() int

func (RightBracket) Line

func (rb RightBracket) Line() int

func (RightBracket) Name

func (rb RightBracket) Name() string

func (RightBracket) Start

func (rb RightBracket) Start() int

type RightParen

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

)

func (RightParen) Column

func (rp RightParen) Column() int

func (RightParen) End

func (rp RightParen) End() int

func (RightParen) Line

func (rp RightParen) Line() int

func (RightParen) Name

func (lp RightParen) Name() string

func (RightParen) Start

func (rp RightParen) Start() int

type RightShift

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

>>

func (RightShift) Column

func (rs RightShift) Column() int

func (RightShift) End

func (rs RightShift) End() int

func (RightShift) Line

func (rs RightShift) Line() int

func (RightShift) Name

func (ls RightShift) Name() string

func (RightShift) Precedence

func (ls RightShift) Precedence() int

func (RightShift) Start

func (rs RightShift) Start() int

type Semicolon

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

;

func (Semicolon) Column

func (s Semicolon) Column() int

func (Semicolon) End

func (s Semicolon) End() int

func (Semicolon) Line

func (s Semicolon) Line() int

func (Semicolon) Name

func (s Semicolon) Name() string

func (Semicolon) Start

func (s Semicolon) Start() int

type Size

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

func (Size) Column

func (s Size) Column() int

func (Size) End

func (s Size) End() int

func (Size) Line

func (s Size) Line() int

func (Size) Name

func (s Size) Name() string

func (Size) Start

func (s Size) Start() int

type Static

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

func (Static) Column

func (s Static) Column() int

func (Static) End

func (s Static) End() int

func (Static) Line

func (s Static) Line() int

func (Static) Name

func (s Static) Name() string

func (Static) Start

func (s Static) Start() int

type Status

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

func (Status) Column

func (s Status) Column() int

func (Status) End

func (s Status) End() int

func (Status) Line

func (s Status) Line() int

func (Status) Name

func (s Status) Name() string

func (Status) Start

func (s Status) Start() int

type Stream

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

func (Stream) Column

func (s Stream) Column() int

func (Stream) End

func (s Stream) End() int

func (Stream) Line

func (s Stream) Line() int

func (Stream) Name

func (s Stream) Name() string

func (Stream) Start

func (s Stream) Start() int

type String

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

func (String) Column

func (s String) Column() int

func (String) End

func (s String) End() int

func (String) Line

func (s String) Line() int

func (String) Name

func (s String) Name() string

func (String) Start

func (s String) Start() int

type Sub

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

-

func (Sub) Column

func (s Sub) Column() int

func (Sub) End

func (s Sub) End() int

func (Sub) Line

func (s Sub) Line() int

func (Sub) Name

func (s Sub) Name() string

func (Sub) Precedence

func (s Sub) Precedence() int

func (Sub) Start

func (s Sub) Start() int

type Time

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

func (Time) Column

func (t Time) Column() int

func (Time) End

func (t Time) End() int

func (Time) Line

func (t Time) Line() int

func (Time) Name

func (t Time) Name() string

func (Time) Start

func (t Time) Start() int

type Token

type Token interface {
	Start() int
	End() int
	Line() int
	Column() int
	Name() string
}

func Parse

func Parse(src []byte) ([]Token, error)

Parse parses src byte array containing the source code and returns token Stream.

type Type

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

func (Type) Column

func (t Type) Column() int

func (Type) End

func (t Type) End() int

func (Type) Line

func (t Type) Line() int

func (Type) Name

func (t Type) Name() string

func (Type) Start

func (t Type) Start() int

type Width

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

func (Width) Column

func (w Width) Column() int

func (Width) End

func (w Width) End() int

func (Width) Line

func (w Width) Line() int

func (Width) Name

func (w Width) Name() string

func (Width) Start

func (w Width) Start() int

type Xor

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

^

func (Xor) Column

func (x Xor) Column() int

func (Xor) End

func (x Xor) End() int

func (Xor) Line

func (x Xor) Line() int

func (Xor) Name

func (x Xor) Name() string

func (Xor) Precedence

func (x Xor) Precedence() int

func (Xor) Start

func (x Xor) Start() int

Jump to

Keyboard shortcuts

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