We should support maths of both numbers & variables.
Possible syntax:
All maths are enclosed by {{ and }}
Support numbers & both variable types (i.e $VAR and $(var))
Given the order in which $VAR and $(var) are resolved, we probably want to detect maths during the config grammar parse, resolve all $VAR and $(var) instances, then evaluate the maths at the end.
See https://github.com/taocpp/PEGTL/blob/main/src/example/pegtl/calculator.cpp as a starting point.
We should support maths of both numbers & variables.
Possible syntax:
{{
and}}
$VAR
and$(var)
)Given the order in which
$VAR
and$(var)
are resolved, we probably want to detect maths during the config grammar parse, resolve all$VAR
and$(var)
instances, then evaluate the maths at the end.