Teknomancer / sysprocalc

Command-line expression-evaluator and x86 register descriptions
Apache License 2.0
0 stars 1 forks source link

Merge spceval::parse and spceval::evaluate for external consumers #6

Closed Teknomancer closed 3 years ago

Teknomancer commented 3 years ago

There's really no need to expose parsing and evaluation as two separate phases to consumers of the library.

I'm not going to be supporting variables or anything like that anyway, so merge these into a single function perhaps we can even get rid of exposing ExprCtx.