mirror of https://github.com/tbklang/tlang.git
🧠 Feature/Meta: Cloneable (round 1) #117
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: 1 hour 21 minutes
Due Date
deavmi
1 hour 21 minutes
Blocks
#118 ⚡ Feature: Add support for structs
tlang/tlang
Reference: tlang/tlang#117
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
And more to come...
Added a
Cloneable
interface as of commit3a06c49fe3d51f8385a0d8015591b645f17cc3a3
✅Bump. We should maybe also look into adding this, either in the PR for
feature/meta_programming
or at a later stage.🧠 Feature: Cloneableto 🧠 Feature/Meta: CloneableThe interface has been added but we are yet to make use of a test for it, I think #122 might or probably not - may be a good use for it.
Yeah nah, it would.
Anyways, staying open till this is implemented.
Yoh, lots of work is being done to add this now...
Added a unit test to test
clone()
on aStruct
with twoVariable
(with no assignments) members🧠 Feature/Meta: Cloneableto 🧠 Feature/Meta: Cloneable (round 1)Closed by mistake
Going to merge this now...
Merged