parser

package
v0.0.0-...-05ae0ce Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ADD = 57351
View Source
const COLON = 57365
View Source
const COMMA = 57359
View Source
const HASH = 57347
View Source
const IDENT = 57346
View Source
const LBRACE = 57358
View Source
const LBRACK = 57357
View Source
const LPAREN = 57356
View Source
const MUL = 57353
View Source
const NUMBER = 57349
View Source
const PERIOD = 57360
View Source
const QUO = 57354
View Source
const RBRACE = 57363
View Source
const RBRACK = 57362
View Source
const REM = 57355
View Source
const RPAREN = 57361
View Source
const SEMICOLON = 57364
View Source
const STRING = 57348
View Source
const SUB = 57352
View Source
const WHITESPACE = 57350

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorHandler

type ErrorHandler func(pos gotoken.Position, msg string)

type Lexer

type Lexer struct {
	ErrorCount int
	// contains filtered or unexported fields
}

func (*Lexer) Init

func (s *Lexer) Init(file *gotoken.File, src []byte, err ErrorHandler)

func (*Lexer) Scan

func (s *Lexer) Scan() (pos gotoken.Pos, tok token.Token, lit string)

Scan ... return token.$ token.IDENT token.COLON token.Space token.

type Lexer2

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

func (*Lexer2) Init

func (l *Lexer2) Init(src []byte)

func (*Lexer2) Scan

func (l *Lexer2) Scan() (tok token.Token, lit string)

Jump to

Keyboard shortcuts

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