sevki.org/build/lexer

Index

Package Files

lexer.go

type Lexer

type Lexer struct {
    Tokens chan token.Token // channel of scanned items
    // contains filtered or unexported fields
}

Lexer holds the state of the lexer.

func New

func New(name string, r io.Reader) *Lexer

func (*Lexer) LineBuffer

func (l *Lexer) LineBuffer() string

Subdirectories