parser

package
v0.0.0-...-3ee6b4a Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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