parser

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Definition

type Definition interface {
	GetName() string
	LookupArgument(name string) bool
	SetArgument(name string, value interface{}) error
	InflateObject() (interface{}, error)
}

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser(input string, registry Registry) *Parser

func (*Parser) NextItem

func (p *Parser) NextItem() *Result

func (*Parser) Parse

func (p *Parser) Parse() []*Result

func (*Parser) Run

func (p *Parser) Run()

type Registry

type Registry interface {
	Lookup(name string) bool
	GetDefinition(name string) Definition
}

type Result

type Result struct {
	Object     interface{}
	MarkerText string
}

type Unmarshaler

type Unmarshaler interface {
	UnmarshalMarkerArg(in string) error
}

Jump to

Keyboard shortcuts

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