scanlist

package
v0.0.0-...-7323597 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2017 License: MIT Imports: 1 Imported by: 3

Documentation

Overview

A Lazy-Evaluating Linked list around the "text/scanner" package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseScanner

type BaseScanner struct {
	scanner.Scanner
	Dict   TokenDict
	Concat *Element
}

func (*BaseScanner) Next

func (b *BaseScanner) Next() *Element

type Element

type Element struct {
	Token     rune
	TokenText string
	Pos       scanner.Position
	Dict      TokenDict // for Include-Functions.
	// contains filtered or unexported fields
}

func (*Element) Next

func (e *Element) Next() *Element

func (*Element) SafeNext

func (e *Element) SafeNext() *Element

func (*Element) SafePos

func (e *Element) SafePos() (p scanner.Position)

func (*Element) SafeToken

func (e *Element) SafeToken() (t rune)

func (*Element) SafeTokenText

func (e *Element) SafeTokenText() (tt string)

type TokenDict

type TokenDict map[string]rune

func (TokenDict) Get

func (t TokenDict) Get(s string, r rune) rune

func (TokenDict) Join

func (t TokenDict) Join(o TokenDict) TokenDict

Jump to

Keyboard shortcuts

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