Documentation ¶
Index ¶
- func RandStr(n int) string
- type Parser
- func (p *Parser) Parse() (statement.Statement, error)
- func (p *Parser) ParseExecStatement() (*statement.ExecStatement, error)
- func (p *Parser) ParseFunction() (*statement.Function, error)
- func (p *Parser) ParseGoStatement() (*statement.GoStatement, error)
- func (p *Parser) ParseInsertStatement() (*statement.InsertStatement, error)
- func (p *Parser) ParseQueryStatement() (*statement.QueryStatement, error)
- func (p *Parser) ParseSetStatement() (*statement.SetStatement, error)
- func (p *Parser) ParseTemplate() (*statement.Template, error)
- func (p *Parser) ParseTimestamp() (*statement.Timestamp, error)
- func (p *Parser) ParseWaitStatement() (*statement.WaitStatement, error)
- type Scanner
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser turns the file from raw text into an AST
func (*Parser) ParseExecStatement ¶
func (p *Parser) ParseExecStatement() (*statement.ExecStatement, error)
ParseExecStatement returns a ExecStatement
func (*Parser) ParseFunction ¶
ParseFunction returns a Function
func (*Parser) ParseGoStatement ¶
func (p *Parser) ParseGoStatement() (*statement.GoStatement, error)
ParseGoStatement returns a GoStatement
func (*Parser) ParseInsertStatement ¶
func (p *Parser) ParseInsertStatement() (*statement.InsertStatement, error)
ParseInsertStatement returns a InsertStatement
func (*Parser) ParseQueryStatement ¶
func (p *Parser) ParseQueryStatement() (*statement.QueryStatement, error)
ParseQueryStatement returns a QueryStatement
func (*Parser) ParseSetStatement ¶
func (p *Parser) ParseSetStatement() (*statement.SetStatement, error)
ParseSetStatement returns a SetStatement
func (*Parser) ParseTemplate ¶
ParseTemplate returns a Template
func (*Parser) ParseTimestamp ¶
ParseTimestamp returns a Timestamp
func (*Parser) ParseWaitStatement ¶
func (p *Parser) ParseWaitStatement() (*statement.WaitStatement, error)
ParseWaitStatement returns a WaitStatement
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner scans over the file and converts the raw text into tokens
type Token ¶
type Token int
Token represents a lexical token.
const ( ILLEGAL Token = iota EOF WS // IDENT and the following are InfluxQL literal tokens. IDENT // main NUMBER // 12345.67 DURATIONVAL // 13h STRING // "abc" BADSTRING // "abc TEMPLATEVAR // %f COMMA // , LPAREN // ( RPAREN // ) LBRACKET // [ RBRACKET // ] PIPE // | PERIOD // . SET USE QUERY INSERT GO DO WAIT STR INT FLOAT EXEC )
The following tokens represent the different values in the AST that make up stressql
Click to show internal directories.
Click to hide internal directories.