stressql

package
v1.0.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseStatements

func ParseStatements(file string) ([]statement.Statement, error)

ParseStatements takes a configFile and returns a slice of Statements

Types

type Scanner

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

Scanner scans the file and tokenizes the raw text

func NewScanner

func NewScanner(r io.Reader) *Scanner

NewScanner returns a Scanner

func (*Scanner) Scan

func (s *Scanner) Scan() (tok Token, lit string)

Scan moves the Scanner forward one character

type Token

type Token int

Token represents a lexical token.

const (
	ILLEGAL Token = iota
	EOF
	STATEMENT
	BREAK
)

These are the lexical tokens used by the file parser

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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