validate

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoValidate

func DoValidate(validateParams *CmdContextParamValidate) error

func LoadGrammar

func LoadGrammar(grammarFile string) (*sysl.Application, error)

LoadGrammar loads sysl conversion of given grammar. eg: if grammarFile is ./foo/bar.g, this tries to load ./foo/bar.sysl

Types

type CmdContextParamValidate

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

func ConfigureCmdlineForValidate

func ConfigureCmdlineForValidate(sysl *kingpin.Application) *CmdContextParamValidate

ConfigureCmdlineForValidate configures commandline params related to validate

type Validator

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

func NewValidator

func NewValidator(grammar, transform *sysl.Application, parser *parse.Parser) *Validator

func (*Validator) GetMessages

func (v *Validator) GetMessages() map[string][]msg.Msg

func (*Validator) LogMessages

func (v *Validator) LogMessages()

func (*Validator) Validate

func (v *Validator) Validate(start string)

Jump to

Keyboard shortcuts

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