parse

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	T_ERR tokenType = iota
	T_EOF

	T_IDENTIFIER

	T_NUMBER
	T_STRING
	T_BOOLEAN

	T_LOGICAL_AND
	T_LOGICAL_OR
	T_LOGICAL_NOT

	T_LEFT_PAREN
	T_RIGHT_PAREN

	T_IS_EQUAL
	T_IS_NOT_EQUAL
	T_IS_GREATER
	T_IS_GREATER_OR_EQUAL
	T_IS_SMALLER
	T_IS_SMALLER_OR_EQUAL
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Tree

type Tree interface {
	Left() Tree
	Right() Tree
	Value() token
}

func Parse

func Parse(s string) (Tree, error)

Parse parses an expression in text format and returns the parse tree.

Jump to

Keyboard shortcuts

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