ProSurfer73 / Macro-Parser

A C/C++ macro calculator
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Upgrade interpret command #46

Closed ProSurfer73 closed 2 years ago

ProSurfer73 commented 2 years ago

The 'interpret' command should now deal not only with the macro itself but also with redefined macros steming from evaluating its expression.

For example (draft):

interpret VERYCOMPLEXMACRO

VERYCOMPLEXMACRO has multiple definitions :

  1. 543
  2. JJJ+543
  3. Exit Please choose the one you would like to apply. 2

JJ has multiple definitions, please choose the one you would like to choose:

  1. 354
  2. 1
  3. RF+1 3

The same goes for the macro RF (that we suppose has been redefined).

Let's upgrade this command to the next level !

ProSurfer73 commented 2 years ago

Feature implemented by this commit : https://github.com/ProSurfer73/Macro-Parser/commit/28c3ce07135231bb76a120d38d2cdba742b653f4