mirror of https://github.com/tbklang/tlang.git
🧠 Feature/Meta: Cloneable (round 2) #148
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: 8 seconds
Due Date
deavmi
8 seconds
Dependencies
No dependencies set.
Reference: tlang/tlang#148
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?
Ability to deep clone a parser node if it implements the
Cloneable
interface.Why?
Will be needed for meta-programming support.
Current support
We want to add support to the following:
Struct
Variable
VariableAssignment
BinaryOperatorExpression
IntegerLiteral
Module
Class
Function
UnaryOpExpression
And more to come...
I must see if this is still relevant. I kind of work on these as they come, but a once off "make sure everything supports it" type of PR would be useful.
I'm actually going to close this for now. Will probably redo this work later.