Version: 0.01 Alpha MIT License (MIT)
go expression is a basic math expression parser and evaluator. This project is in alpha phase and may change significantly in the near future.
The purpose is to learn go and use the expression parser in other projects.
Supported
Parsing only
Planned
context := map[string]interface{}{
"x": 5,
"y": 21,
"z": 12.5,
}
ans:=goexpression.Eval("1+x*(50-y)/z", context)
fmt.Printf("=%v",ans)
Version | Tag | Published |
---|---|---|
v0.0.0-20200529021658-821357644f79 | 2yrs ago | |
v0.0.0-20200210050232-9e52b8533cf2 | 2yrs ago | |
v0.0.0-20150219185509-b35b522126da | 3yrs ago |