lexer

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EOF = token.Token{
		Kind:    token.EOF,
		Literal: "",
		Raw:     "",
		Start:   token.Position{},
		End:     token.Position{},
	}
)

Functions

func LexTemplate

func LexTemplate(start token.Token) []token.Token

Types

type Lexer

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

func New

func New(input io.Reader) *Lexer

func (*Lexer) Next

func (l *Lexer) Next() token.Token

Jump to

Keyboard shortcuts

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