Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Factor = parsly.NewToken(3, "Factor", matcher.NewCharset("*/"))
View Source
var Number = parsly.NewToken(1, "Number", matcher.NewNumber())
View Source
var Term = parsly.NewToken(2, "Term", matcher.NewCharset("+-"))
View Source
var Whitespace = parsly.NewToken(0, "Whitespace", matcher.NewWhiteSpace())
Functions ¶
This section is empty.
Types ¶
type Expression ¶
type Expression struct {
LeftOp *Operand `json:",omitempty"`
Operator string
RightOp *Operand `json:",omitempty"`
}
func Parse ¶
func Parse(input []byte) (root *Expression, err error)
Click to show internal directories.
Click to hide internal directories.