On Monday, 8 January 2018 at 06:02:35 UTC, thedeemon wrote:
On Sunday, 7 January 2018 at 20:41:57 UTC, Dechcaudron wrote:
It allows the runtime evaluation of simple math expressions like `1 + 2 * 3` or `1 ^ foo`, with foo being given values at run time.

That's a nice exercise in using Pegged.
Reminds me of another Pegged-based calculator with variables, more operations, more precision and more permissive license:
http://code.dlang.org/packages/pc

It hasn't been updated in 4 years but still can be built by Dub automatically, that's how stable D is these days!

From what I can see (documentation appears to be scarce) pc strived to be more like a Matlab-style program. ArithEval is to be used as a library to help deal with user input. But the former definitely supports many more operations, you are right. I guess it would not hurt to change the license to MIT. Would that encourage use by the community?

Reply via email to