parse

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2019 License: MIT Imports: 7 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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