parser

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(tokens []*lexer.Token, params Params) (*fsm.State, error)

Parse transforms a slice of tokens into an FSM or returns an ParseError

Types

type Params

type Params struct {
	Spec       string
	Options    []*container.Container
	OptionsIdx map[string]*container.Container
	Args       []*container.Container
	ArgsIdx    map[string]*container.Container
}

Params are used to cofigure the parser

Jump to

Keyboard shortcuts

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