parse

package
v0.0.0-...-48d56c4 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ItemType

type ItemType int

ItemType identifies the type of lex items.

const (
	LogicAnd ItemType // && keyword
	LogicOr           // || keyword

	OpEqual              // == keyword
	OpNotEqual           // != keyword
	OpGreaterThan        // > keyword
	OpGreaterThanOrEqual // >= keyword
	OpLessThan           // < keyword
	OpLessThanOrEqual    // <= keyword

)

type Parser

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

func New

func New(name, input string) *Parser

func (*Parser) Parse

func (p *Parser) Parse() (combat.Profile, error)

type Pos

type Pos int

func (Pos) Position

func (p Pos) Position() Pos

Jump to

Keyboard shortcuts

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