package lexer

import "github.com/gobwas/glob/syntax/lexer"

Index

Functions

func NewLexer

func NewLexer(source string) *lexer

func Special

func Special(c byte) bool

Types

type Token

type Token struct {
	Type TokenType
	Raw  string
}

func (Token) String

func (t Token) String() string

type TokenType

type TokenType int
const (
	EOF TokenType = iota
	Error
	Text
	Char
	Any
	Super
	Single
	Not
	Separator
	RangeOpen
	RangeClose
	RangeLo
	RangeHi
	RangeBetween
	TermsOpen
	TermsClose
)

func (TokenType) String

func (tt TokenType) String() string

Source Files

lexer.go token.go

Version
v0.2.3 (latest)
Published
Feb 8, 2018
Platform
linux/amd64
Imports
4 packages
Last checked
5 days ago

Tools for package owners.