parser

package
v0.0.0-...-a278cc6 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LangUnset      = Language("")
	LangGo         = Language("Go")
	LangTypescript = Language("Typescript")
)

Variables

View Source
var DEBUG = false

Functions

This section is empty.

Types

type Language

type Language string

type Parser

type Parser struct {
	Lang       Language
	ImportBase string
	Rules      []Rule
	Errors     []error
	// contains filtered or unexported fields
}

func New

func New(input []lexer.Result) Parser

func (*Parser) Parse

func (p *Parser) Parse()

type Rule

type Rule struct {
	RuleFor               string
	CannotImport          []string
	AllowImportExceptions []string
}

Jump to

Keyboard shortcuts

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