MCPcopy Index your code
hub / github.com/andeya/algorithm / Eval

Function Eval

evaler/evaler.go:206–217  ·  view source on GitHub ↗

Eval takes an infix string arithmetic expression, and evaluates it Usage: result, err := evaler.Eval("1+2") Returns: the result of the evaluation, and any errors

(expr string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

tokeniseFunction · 0.85
convert2postfixFunction · 0.85
evaluatePostfixFunction · 0.85

Tested by

no test coverage detected