interpreter

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AndExpression

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

and

func (*AndExpression) Interpret

func (ae *AndExpression) Interpret(context string) bool

type Expression

type Expression interface {
	Interpret(string) bool
}

type OrExpression

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

or

func NewAndExpression

func NewAndExpression(expr1, expr2 Expression) *OrExpression

func NewOrExpression

func NewOrExpression(expr1, expr2 Expression) *OrExpression

func (*OrExpression) Interpret

func (oe *OrExpression) Interpret(context string) bool

type TerminalExpression

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

terminal

func NewTerminalExpression

func NewTerminalExpression(data string) *TerminalExpression

func (*TerminalExpression) Interpret

func (ti *TerminalExpression) Interpret(context string) bool

Jump to

Keyboard shortcuts

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