lex

package
v0.0.0-...-7f2d481 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ItemError itemType = iota // error occurred; value is text of error
	ItemEOF
	ItemText
	ItemRawString
	ItemLeftDelim
	ItemRightDelim
	ItemLeftParen
	ItemRightParen
	ItemParameter
	ItemScript
	ItemRubyBlock
	ItemNumber
)

Variables

This section is empty.

Functions

func TranslateItems

func TranslateItems(items []Item) (string, error)

Types

type Item

type Item struct {
	Typ itemType // The type of this item.
	Val string   // The value of this item.
	// contains filtered or unexported fields
}

func ParseText

func ParseText(text string) ([]Item, error)

func (Item) String

func (i Item) String() string

Jump to

Keyboard shortcuts

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