syntax

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 7 Imported by: 0

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

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

Jump to

Keyboard shortcuts

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