Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context interface { // Token returns the currently accumulated token string. Token() string // Emit will run the TokenFunc provided to Run with the given token. Emit(token interface{}) // Clear clears the currently accumulated token string. Clear() // Error ends the lexing process, and causes run to return an error with err in its history. // The StateFunc returned by Error should be returned immediately. Error(err error) StateFunc }
type LocationInFile ¶
func (*LocationInFile) AdvanceLine ¶
func (lif *LocationInFile) AdvanceLine()
func (*LocationInFile) AdvanceRune ¶
func (lif *LocationInFile) AdvanceRune()
func (LocationInFile) String ¶
func (lif LocationInFile) String() string
type StateFunc ¶
func MatchString ¶
Click to show internal directories.
Click to hide internal directories.