Teknomancer / sysprocalc

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

Add support for constants #7

Open Teknomancer opened 3 years ago

Teknomancer commented 3 years ago

Constants like _4K, _PAGE_SIZE etc. need to be possible to specify in the evaluator.

For now have it as a static hashmap perhaps of names to Number structs.

Teknomancer commented 2 years ago

Add last result substitution with _? for example: _? + 5 should evaluate to previous result plus 5.