mirror of https://github.com/tbklang/tlang.git
TypeChecking rework: Removal of typequeue #99
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
Blocks
#94 Literal encodings
tlang/tlang
Reference: tlang/tlang#99
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?
What is this?
It came to my attention that we really needed to have types embedded in any instruction which was a
Value
instruction, therefore I then added this. However, what came of this was me effectively carrying around type information along with theInstruction
s we wouldpopInstr()
off - so why not use thevalueInstr.type
instead of thepopType()
and an entire different typequeue.Therefore I decided to embark on a full transition to this method. This means we can do what we did with the
codequeue
as normal in the typechecking and codegeneration stage, but we get the added reusability-benefit of having said types available in theDGen
(code emit stage).We have fully removed the type queue as of commit
b7b0bb452aa2758942c5a21f16cd4fa18bb522e8
on branchremove_typequeue
.Merging this into
literal_encodings
(as that is our working branch)