parser

package
v0.0.0-...-72d6b00 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorAt

func ErrorAt(pos lexer.Position, fmt string, args ...interface{}) error

Types

type Arg

type Arg interface {
	LineCol() (int, int)
	// contains filtered or unexported methods
}

type Cmd

type Cmd struct {
	lexer.Position
	Id    string
	Args  []Arg
	Tests []Test
	Block []Cmd
}

func Parse

func Parse(stream *lexer.Stream, opts *Options) ([]Cmd, error)

type NumberArg

type NumberArg struct {
	Value int
	lexer.Position
}

type Options

type Options struct {
	MaxBlockNesting int
	MaxTestNesting  int
}

type StringArg

type StringArg struct {
	Value string
	lexer.Position
}

type StringListArg

type StringListArg struct {
	Value []string
	lexer.Position
}

type TagArg

type TagArg struct {
	Value string
	lexer.Position
}

type Test

type Test struct {
	lexer.Position
	Id    string
	Args  []Arg
	Tests []Test
}

Jump to

Keyboard shortcuts

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