DylanSp / wheel-lang

A small toy imperative language (with some OOP features) for demonstrating and practicing language design/implementation.
MIT License
14 stars 0 forks source link

Add implementation, tests, examples for standalone function calls #38

Closed DylanSp closed 4 years ago

DylanSp commented 4 years ago

With addition of ExprStatement to the grammar, need to actually implement this, as well as adding tests to make sure this is exercised; may need to augment parser as well.

Example programs:

{
  printInt(3);
}
{
  function f()
  {
    printBool(true);
  }

  f();
}