Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

Add control flow AST #2

Closed
wants to merge 2 commits into from
Closed

Add control flow AST #2

wants to merge 2 commits into from

Conversation

elefthei
Copy link
Collaborator

@elefthei elefthei commented Oct 7, 2020

WIP


-- Control flow syntax
data Control (term :: * -> *) (a :: *) where
For :: Range -> term Int -> Control term a -> Control term a
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the body be Control term a? Maybe we should do the loop flattening during Codegen and have nested loops be unrepresentable

@elefthei elefthei closed this Oct 8, 2020
elefthei pushed a commit that referenced this pull request Dec 15, 2020
pull new functionality from circify/compiler
elefthei pushed a commit that referenced this pull request Jan 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant