No description
defaults.go | ||
evaluator.go | ||
evaluator_test.go | ||
execute.go | ||
go.mod | ||
infixrpn.go | ||
LICENSE | ||
README.md | ||
stack.go | ||
token.go |
expression
Another expression parser and executor Better version of https://github.com/neonxp/lexpr
usage
import "go.neonxp.dev/expression"
...
e := expression.New()
result, err := e.Eval(`2 + 2`) // 4, nil
...
defaults
Default operators and functions: /defaults.go