parser

package
v0.0.0-...-1c8d635 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element struct {
	Type     ElementType    // type of the element
	Tokens   []*lexer.Token // tokens associated with this element
	Children *list.List     // list of sub elements
}

Type to denote a grammatical element.

func NewElement

func NewElement(t ElementType) *Element

func (*Element) String

func (elem *Element) String() string

type ElementType

type ElementType struct {
	Name     string            // Name of the ekement
	TokTypes []lexer.TokenType // types of allowed tokens
	NTokens  int               // number of tokens managed
}

Element metadata

Jump to

Keyboard shortcuts

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