Documentation ¶
Overview ¶
Package lexer is the lexer for the arbor project. The lexer can either be run asyncrounously or syncrounously
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lex ¶
Lex lexes the input syncrounously by returning a function that will listen for input on the channel else it will call the state function.
This function returns a function that can be used to get the next lexeme
func LexAsync ¶
LexAsync lexs the input asyncronously. This returns a channel that will contain the identified lexemes
Types ¶
type Definitions ¶
type Definitions struct { }
func (*Definitions) Lex ¶
func (d *Definitions) Lex(r io.Reader) (participle.Lexer, error)
func (*Definitions) Symbols ¶
func (d *Definitions) Symbols() map[string]rune
Click to show internal directories.
Click to hide internal directories.