core

package
v0.0.0-...-fb35de2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NORMAL = iota
	SYMBOL = iota
	NAME   = iota
	TEXT   = iota
	TEXT2  = iota
	ESCAPE = iota
	NUMBER = iota
	EOF    = iota
)

Variables

View Source
var EOFTOKEN = Token{EOF, "", 0}

Functions

func IsName

func IsName(t Token, s string) bool

func IsSymbol

func IsSymbol(t Token, c int32) bool

func IsText

func IsText(t Token, s string) bool

func ResetTokenId

func ResetTokenId()

Types

type Token

type Token struct {
	Typ         int
	StringValue string
	CharValue   int32
}

func NextToken

func NextToken(tokens []Token) Token

func Parse

func Parse(data []byte) []Token

func (Token) String

func (t Token) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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