lexer

package
v0.0.0-...-16c3363 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2016 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lexer

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

func New

func New(sc *scanner.Scanner) *Lexer

func (*Lexer) CatchSyntaxError

func (l *Lexer) CatchSyntaxError(f func()) (errRes *errors.QueryError)

func (*Lexer) Consume

func (l *Lexer) Consume()

func (*Lexer) ConsumeFloat

func (l *Lexer) ConsumeFloat() float64

func (*Lexer) ConsumeIdent

func (l *Lexer) ConsumeIdent() string

func (*Lexer) ConsumeInt

func (l *Lexer) ConsumeInt() int

func (*Lexer) ConsumeKeyword

func (l *Lexer) ConsumeKeyword(keyword string)

func (*Lexer) ConsumeString

func (l *Lexer) ConsumeString() string

func (*Lexer) ConsumeToken

func (l *Lexer) ConsumeToken(expected rune)

func (*Lexer) Peek

func (l *Lexer) Peek() rune

func (*Lexer) SyntaxError

func (l *Lexer) SyntaxError(message string)

Jump to

Keyboard shortcuts

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