mirror of https://github.com/tbklang/tlang.git
generalStatement() #77
Labels
No Label
dependency
emit
hashmapper
lebanonmapper
lexer
meta
needsfix
parser
qol
question
resolution
typing
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
Dependencies
No dependencies set.
Reference: tlang/tlang#77
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem we have
Currently when implementing for-loop processing in
dependency/core.d
we need to effectievly do ageneralPass()
but on a single entity which isn't possible.Solution:
generalStatementPass()
I suggest, therefore, that we introduce a metho called
generalStatementPass(Container, Context, Statement)
which can do exactly this. Then we move the body code out ofgeneralPass
and into this, and make a call togeneralStatementPass()
from the for-each loop ingeneralPass()
.Okay, just did this now and it seems to work
NO! It isn't what I want!
Solution found ✅
We pass various of the test cases which is good.
Okay, it is now what I want. What we have done is the following.
Solution found ✅
We pass various of the test cases which is good.
Updates to
generalPass()
We now have the following loop:
The added code is:
This will check if there is a dependency node returned, and only if so then add it to the COntainer's DNode,
node
. We do this as sometimes there are either unimplemented checks or simply a DNode is not meant to be returned, seeVariableParameter
and Functiond efinitions for example. This fits in with what we were doing previously but is now neater.This was completed as of commit
ec7d8cf4240b24a2f6fdbd8071195c9efe08d573
on branchloops