lexer

package
v0.0.0-...-63eae10 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2018 License: LGPL-2.1 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TLexer

type TLexer struct {
	// contains filtered or unexported fields
}

TLexer -

func New

func New(s string) *TLexer

New - create new lexer

func (*TLexer) Accept

func (o *TLexer) Accept(s string) bool

Accept - peakup next rune

func (*TLexer) AcceptAnyEnglish

func (o *TLexer) AcceptAnyEnglish() bool

AcceptAnyEnglish -

func (*TLexer) AcceptFn

func (o *TLexer) AcceptFn(fn func(r rune) bool) bool

AcceptFn - asdfasdf

func (*TLexer) AcceptPeek

func (o *TLexer) AcceptPeek(s string) bool

AcceptPeek -

func (*TLexer) AcceptWhile

func (o *TLexer) AcceptWhile(s string)

AcceptWhile -

func (*TLexer) AcceptWhileNot

func (o *TLexer) AcceptWhileNot(s string)

AcceptWhileNot -

func (*TLexer) Emit

func (o *TLexer) Emit() string

Emit -

func (*TLexer) Ignore

func (o *TLexer) Ignore()

Ignore -

func (*TLexer) Next

func (o *TLexer) Next() rune

Next - go to next rune

func (*TLexer) Peek

func (o *TLexer) Peek() rune

Peek - look to next rune

func (*TLexer) Pos

func (o *TLexer) Pos() int

Pos - return pos of lexer

func (*TLexer) RollBack

func (o *TLexer) RollBack()

RollBack - reset pos

func (*TLexer) SetPos

func (o *TLexer) SetPos(i int)

SetPos -

type TTagType

type TTagType int

TTagType -

Jump to

Keyboard shortcuts

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