parser

package
v2.0.0-...-b0e3ffe Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const NODE = 57347

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

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

Parser is a structure that parses an expression and returns the corresponding gorgonia node

func NewParser

func NewParser(g *G.ExprGraph) *Parser

NewParser ...

func (*Parser) Parse

func (p *Parser) Parse(s string) (*G.Node, error)

Parse a string and returns the node

func (*Parser) Set

func (p *Parser) Set(ident string, value *G.Node)

Set a value to the ident

Directories

Path Synopsis
Expr is a simple expression evaluator that serves as a working example of how to use Go's yacc implementation.
Expr is a simple expression evaluator that serves as a working example of how to use Go's yacc implementation.

Jump to

Keyboard shortcuts

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