evaler icon indicating copy to clipboard operation
evaler copied to clipboard

Implements a simple floating point arithmetic expression evaluator in Go (golang).

Results 5 evaler issues
Sort by recently updated
recently updated
newest added

numbers that lead with '0' is radix 8 and '0x' is 16.

BTW this was very simple to add to picol.go. Could use the module operator.

Unfortunately it gives an error if I try to pass a variable name which has a number in it; For example, a map with `{"catX":"33"}` evaluates fine; but if I...

for k := range symbolTable { s += k } symbols_rx = regexp.MustCompile(fmt.Sprintf("(%s)", s)) func Tokenis (expr string) []string { if symbols_rx != nil { spaced = symbols_rx.ReplaceAllString(spaced, " ${1}...

It seems this lib is not goroutine-safe for there is a variable symbolTable in package.