Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FunctionStatement ¶
FunctionStatement represents one parsed function
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser represents a parser.
func (*Parser) ParseFunction ¶
func (p *Parser) ParseFunction() (*FunctionStatement, error)
ParseFunction extract tokens from string ex : test1("arg1","arg2")
func (*Parser) ParsePositionAndFunctions ¶
func (p *Parser) ParsePositionAndFunctions() (*PositionStatement, error)
ParsePositionAndFunctions extract tokens from string ex : position:test|test1("arg1","arg2")
func (*Parser) ParsePositionsAndFunctions ¶
func (p *Parser) ParsePositionsAndFunctions() (*[]PositionStatement, error)
ParsePositionsAndFunctions extract tokens from string ex : position:test,position:test1("arg1","arg2")
type PositionStatement ¶
type PositionStatement struct {
Position int
Functions []FunctionStatement
}
PositionStatement represents all parsed functions from command line
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner represents a lexical scanner.
func NewScanner ¶
NewScanner returns a new instance of Scanner.
Click to show internal directories.
Click to hide internal directories.