Uniformity: Make StandaloneVariableAssignment use a VariableAssignmentNode like VariableDeclaration does #100

Closed
opened 2023-02-03 14:31:51 +00:00 by deavmi · 1 comment
Owner

What is this?

Currently a variable declaration with an assignment is a Variable Declaration-> VariableAssignment -> ValueInstr, but Standalone Assignments currently are a StandaloneAssignment -> ValueInstr.

We should be doing StandaloneAssignment -> VariableAssignment -> ValueInstr, that or do away with the middle man.

### What is this? Currently a variable declaration with an assignment is a `Variable Declaration-> VariableAssignment -> ValueInstr`, but Standalone Assignments currently are a `StandaloneAssignment -> ValueInstr`. We _should_ be doing `StandaloneAssignment -> VariableAssignment -> ValueInstr`, that or do away with the middle man.
deavmi added the
typing
dependency
qol
labels 2023-02-03 14:32:08 +00:00
deavmi added this to the Dependency tree, type-checking and codegen project 2023-02-03 14:32:13 +00:00
deavmi self-assigned this 2023-02-03 14:32:17 +00:00
deavmi added the due date 2023-02-04 2023-02-03 14:32:28 +00:00
deavmi added a new dependency 2023-02-03 14:32:35 +00:00
deavmi started working 2023-02-03 14:32:56 +00:00
deavmi stopped working 2023-02-03 14:33:00 +00:00
4 seconds
deavmi added reference uniform_stdalone_varass 2023-02-03 14:33:51 +00:00
Author
Owner

I settled on the following now:

  1. Variable Declaration (with assignment) ... -> Expression
  2. VariableAssignentStdAlone -> Expression

Most uniform way and cuts the middle man out.

I settled on the following now: 1. `Variable Declaration` (with assignment) `... -> Expression` 2. `VariableAssignentStdAlone -> Expression` Most uniform way and cuts the middle man out.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Total Time Spent: 4 seconds
deavmi
4 seconds
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

2023-02-04

Blocks
Reference: tlang/tlang#100
No description provided.