lexx

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 3 Imported by: 0

README

lexx

A greedy lexical tokenizer in Go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lexx

type Lexx struct {
	Input *bufio.Reader

	Token       *matchers_class.Token
	NextToken   *matchers_class.Token
	CurrentText string

	Line   int
	Column int
	// contains filtered or unexported fields
}

func (*Lexx) AddMatcher

func (lexx *Lexx) AddMatcher(newMatcher func() func(r rune, currentText *string) matchers_class.MatcherResult)

func (*Lexx) Clone

func (lexx *Lexx) Clone() *Lexx

func (*Lexx) GetNextToken

func (lexx *Lexx) GetNextToken() (*matchers_class.Token, error)

func (*Lexx) PushToken

func (lexx *Lexx) PushToken()

func (*Lexx) Rewind

func (lexx *Lexx) Rewind()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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