ledger icon indicating copy to clipboard operation
ledger copied to clipboard

feat: Higher-level machine + Add conditional expression

Open Azorlogh opened this issue 2 years ago • 0 comments

Back-porting of https://github.com/formancehq/stack/pull/293 to v1

Make machine higher-level: Programs are now structured as a high-level trees rather than bytecode. Also adds:

  • Boolean type
  • Arithmetic conditions (== != < <= > >=)
  • Logical operations (! && ||)
  • Conditionals through a ternary operator (syntax TBD, likely if $cond then $istrue else $isfalse)

Azorlogh avatar Aug 05 '23 18:08 Azorlogh