lexer

package
v0.0.0-...-de5ff62 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EOFToken tokenType = iota
	TextToken
	ElementToken
	BraceOpenToken
	BraceCloseToken
)

Variables

This section is empty.

Functions

func New

func New(rr io.RuneReader) *lexer

Types

type Token

type Token struct {
	Type  tokenType
	Value string

	TokenInfo TokenInfo
}

func (Token) String

func (t Token) String() string

type TokenInfo

type TokenInfo struct {
	Line, Column int
}

func (TokenInfo) GoString

func (ti TokenInfo) GoString() string

Jump to

Keyboard shortcuts

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