...
Package stressql
Overview ▹
Index ▹
func ParseStatements ¶
func ParseStatements(file string) ([]statement.Statement, error)
ParseStatements takes a configFile and returns a slice of Statements
type Scanner ¶
Scanner scans the file and tokenizes the raw text
type Scanner struct {
// contains filtered or unexported fields
}
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 ¶
Token represents a lexical token.
type Token int
These are the lexical tokens used by the file parser
const ( ILLEGAL Token = iota EOF STATEMENT BREAK )