lexer

package
v0.0.0-...-ef6bb50 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tokenize

func Tokenize(r io.Reader, cb func(Token) bool) error

Types

type Token

type Token struct {
	Kind  TokenKind
	Body  string
	Attrs map[string][]Token
}

type TokenKind

type TokenKind int
const (
	Open TokenKind = iota + 1
	Close
	Text
	Variable
	SectionOpen
	SectionClose
	InvertedSectionOpen
	Comment
)

Jump to

Keyboard shortcuts

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