Documentation
¶
Index ¶
Constants ¶
View Source
const ( // FrSpace represents a space fragment kind FrSpace parser.FragmentKind // FrWord represents a word fragment kind FrWord // FrSign represents a special character fragment kind FrSign )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lexer ¶
type Lexer struct {
// contains filtered or unexported fields
}
Lexer represents a basic lexer tokenizing source code into 3 basic categories: spaces (whitespaces, tabs, line-breaks), signs (any ASCII special character) and words (any other character)
func NewLexer ¶
func NewLexer(src *parser.SourceFile) *Lexer
NewLexer creates a new basic-latin lexer instance
Click to show internal directories.
Click to hide internal directories.