Tristan B. Velloza Kildaire
c65c41eed2
* Test cases - Added `simple_direct_func_call.t` to test direct function calls * Test cases - Removed tabs which broke lexing * AST nodes - `FunctionCall` now has the ability to be marked as statement-level by calling `makeStatementLevel()`, this can then be queried later via `isStatementLevelFuncCall()` * Parser - Statement-level function calls were never actually returned, resulting in `null` being returned by `parseName()` - this has now been fixed. - Along with this we now "mark" this `FunctionCall` AST node as statement-level when it occurs in `parseName()` * Instruction - Allow `FuncCallInstr` to be makred as statement-level and queired much in the same manner as its corresponding AST-node/parser-node `FunctionCall` * Dependency - Added support for `DNode` generation in `generalPass()` for `FunctionCall` AST nodes * TypeChecker - Handle `FunctionCall`s differently in terms of code generation dependent on whether or not rhe call is within an expression of statement-level * DGen - Handle statement-level function calls (`FuncCallInstr`s) differently by tacking on an additional `";"` to the emit string * - Added `simple_direct_func_call.t` to GitHub pipeline * DGen - Added instrumentation for semantic code generation for `simple_function_recursion_factorial.t` - Added TODO for future `simple_func_call_direct.t` Test cases - Added `simple_function_recursion_factorial.t` to test recursion Pipelines - Added `simple_function_recursion_factorial.t` to `emit` stage * DGen - Made `if` an `else if` - this wouldn't of affected anything but just to be correct * DGen - Added semantic code generation instrumentation for test case `simple_direct_func_call.t` Test cases - Updated test case `simple_direct_func_call.t` |
||
---|---|---|
.. | ||
d.yml |