parser

package
v0.0.0-...-ca996c7 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

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

func NewParser

func NewParser(input string) *Parser

func (*Parser) Parse

func (p *Parser) Parse() (Statement, error)

type Scanner

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

func NewScanner

func NewScanner(r *bufio.Reader) *Scanner

type Statement

type Statement struct {
	Action Token
	Key    string
	Value  string
	Expiry int64
}

type Token

type Token int
const (
	ILLEGAL Token = iota
	EOF
	WS

	IDENT

	GET
	SET
)

Jump to

Keyboard shortcuts

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