mirror of https://github.com/tbklang/tlang.git
🧠️ Ideation: Loaders #152
Labels
No Label
dependency
emit
hashmapper
lebanonmapper
lexer
meta
needsfix
parser
qol
question
resolution
typing
No Milestone
No project
No Assignees
1 Participants
Notifications
Total Time Spent: 15 minutes 5 seconds
Due Date
deavmi
15 minutes 5 seconds
Blocks
#118 ⚡ Feature: Add support for structs
tlang/tlang
Reference: tlang/tlang#152
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?
Need to come up with a way to reason about
x.y.z
andx.y.z = <expr>
for both code generation and emitting thereof.Solution ✅
So I have now come to this. Look I don't think we should be splitting up paths like we do. The visitor pattern for reaching segments generates just stupid things the emitter gets then.
The emitter itself realistically is what should be handling this. As we have seen already with the symbol mapping process used in the C-emitter,
DGen
, which has to do emitter language-specific things in order to make it work.This is of course possible at the emitter level. If we need the idea of a loader then we would have required to split it there anyways in the emitter and could so so easily with string manipulation and lookups (AS DONE WITH SYMBOL MAPPING).
Therefore I suggest we simplify the code within the dependency generator for
VariableExpression
processing.