for loops #74

Closed
opened 2023-01-07 10:59:15 +00:00 by deavmi · 2 comments
Owner

Requirements

  • for loops (see issue #74)
    • Parsing
    • Dependency generation
    • Code generation and typechecking
    • Code emit
    • Requires we implement parseStatement() as per issue #75
    • Marking (unrelated but why not put it here) even is a condition see #79
## Requirements - [x] `for` loops (see issue #74) - [x] Parsing - [x] Dependency generation - [x] Code generation and typechecking - [x] Code emit - [x] Requires we implement `parseStatement()` as per issue #75 - [ ] ~~Marking (unrelated but why not put it here) even _is_ a **condition**~~ see #79
deavmi added this to the Basics milestone 2023-01-07 10:59:15 +00:00
deavmi added the
typing
dependency
parser
emit
labels 2023-01-07 10:59:15 +00:00
deavmi self-assigned this 2023-01-07 10:59:15 +00:00
deavmi added this to the Dependency tree, type-checking and codegen project 2023-01-07 10:59:16 +00:00
deavmi added a new dependency 2023-01-07 10:59:23 +00:00
Author
Owner

Ideas

The for-loop is made up of the following:

for(<stmt>; <condition>; <stmt>)
{
	...
}

For the first <stmt> we kind of need a single statemnet, do we have a working like parseStatement()? I am eager to add such a thing, but the parseBody() would need to be update me thinks.

## Ideas The for-loop is made up of the following: ``` for(<stmt>; <condition>; <stmt>) { ... } ``` For the first `<stmt>` we kind of need a single statemnet, do we have a working like `parseStatement()`? I am eager to add such a thing, but the `parseBody()` would need to be update me thinks.
deavmi added a new dependency 2023-01-07 11:13:33 +00:00
deavmi added a new dependency 2023-01-08 13:07:44 +00:00
Author
Owner

Implemented in commit ec7d8cf4240b24a2f6fdbd8071195c9efe08d573 on branch loops.

Implemented in commit `ec7d8cf4240b24a2f6fdbd8071195c9efe08d573` on branch `loops`.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Blocks Depends on
You do not have permission to read 1 dependency
Reference: tlang/tlang#74
No description provided.