- Stellenbosch, South Africa
- https://deavmi.assigned.network
-
I ❤️ programming and computers. I have a big interest in compiler and interpreter design and implementation and also an interest in networking and fmts/protos.
- Joined on
2021-12-21
Tests run and corerct values arise from the return
statement in simple_functions.t
on commit d1b3319a74efc4ed37c6b492a5d374f93e3f3e74
on vardec_varass_dependency
branch.
TypeChecker (and CodeGen)
No typechecking yet, but we do the following in order to pop the expression Value
instruction that was on the stack codeQueue
(scratchpad) and then we embed it…
Solution
We could do this in the parser but that doesn't feel right, or well it can but the dependency generation is where we make sense of the parse tree generated by the parser (and…
Data (Parser nodes)
We have added a parser node ReturnStmt
(this has been here for some time but we needed to actually weight it with a weight above the default of 0
- which actually…
Dependency
We have the following added to generalPass(COntainer, COntext)
now:
/**
* Return statement
*/
else if(cast(ReturnStmt)entity)
{
ReturnStmt returnStatement =…
Emmiting
I have now done the following:
- Created a
ReturnInstruction
which embeds the epxresiosn instruction, so it can be pulled out by the emitter later and we can do the following:
…