sevki.org/build/token

Index

Package Files

token.go type_string.go

type Token

type Token struct {
    Type  Type
    Text  []byte
    Line  int
    Start int
    End   int
}

func (Token) String

func (t Token) String() string

type Type

type Type int
const (
    EOF Type = iota
    Error
    Newline
    String
    Space
    Int
    Float
    Hex
    LeftCurly
    RightCurly
    LeftParen
    RightParen
    LeftBrac
    RightBrac
    Quote
    Equal
    Colon
    Comma
    Semicolon
    Period
    Comment
    Plus
    Pipe
    Elipsis
    True
    False
    MultiLineString
    TargetDecl
    Func
    For
    In
)

func (Type) String

func (i Type) String() string

Subdirectories