Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomParsers ¶
func CustomParsers() []parser.CustomParser
Types ¶
type DescribeParser ¶
type DescribeParser struct{}
Custome parser implementation for "describe" keyword
func (*DescribeParser) Literal ¶
func (d *DescribeParser) Literal() string
func (*DescribeParser) Parse ¶
func (d *DescribeParser) Parse(p *parser.Parser) (ast.CustomStatement, error)
type DescribeStatement ¶
type DescribeStatement struct { *ast.Meta Name *ast.Ident Befores map[string]*HookStatement Afters map[string]*HookStatement Subroutines []*ast.SubroutineDeclaration }
Declare DescribeStatement
func (*DescribeStatement) GetMeta ¶
func (d *DescribeStatement) GetMeta() *ast.Meta
func (*DescribeStatement) Literal ¶
func (d *DescribeStatement) Literal() string
func (*DescribeStatement) Statement ¶
func (d *DescribeStatement) Statement()
func (*DescribeStatement) String ¶
func (d *DescribeStatement) String() string
type HookParser ¶
type HookParser struct {
// contains filtered or unexported fields
}
func (*HookParser) Literal ¶
func (h *HookParser) Literal() string
func (*HookParser) Parse ¶
func (h *HookParser) Parse(p *parser.Parser) (ast.CustomStatement, error)
type HookStatement ¶
type HookStatement struct { *ast.Meta Block *ast.BlockStatement // contains filtered or unexported fields }
func (*HookStatement) GetMeta ¶
func (s *HookStatement) GetMeta() *ast.Meta
func (*HookStatement) Literal ¶
func (s *HookStatement) Literal() string
func (*HookStatement) Statement ¶
func (s *HookStatement) Statement()
func (*HookStatement) String ¶
func (s *HookStatement) String() string
Click to show internal directories.
Click to hide internal directories.