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!

Reply via email to