lexer

package
v0.0.0-...-561e3ec Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2015 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	K_IF = iota + 128
	K_ELSIF
	K_ELSE
	K_UNLESS
	K_MY
	K_SAY
	K_WHILE
	K_UNTIL
	K_DO
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element struct {
	Val Token
	// contains filtered or unexported fields
}

func Scan

func Scan(s *scanner.Scanner) *Element

func (*Element) Next

func (e *Element) Next() *Element

type Token

type Token struct {
	Type rune
	Kwrd rune
	Text string
	Pos  scanner.Position
}

Jump to

Keyboard shortcuts

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