The first step to accommodate conditional branching is to implement a simple if-else statement.
TODO:
- Extend the parser to handle basic
if-else syntax
- Add support in
expr.ml for conditional expressions and statements.
- Update
codegen.ml to generate appropriate branching code for if-else constructs.
The first step to accommodate conditional branching is to implement a simple if-else statement.
TODO:
if-elsesyntaxexpr.mlfor conditional expressions and statements.codegen.mlto generate appropriate branching code for if-else constructs.