Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add looping/replication instruction #26

Open
zippy opened this issue Aug 17, 2015 · 3 comments
Open

Add looping/replication instruction #26

zippy opened this issue Aug 17, 2015 · 3 comments
Assignees
Labels

Comments

@zippy
Copy link
Owner

zippy commented Aug 17, 2015

We need an instruction for creating a looping construct (what we call replication) that:

  1. adds an execution context for each time through the loop (i.e. like a block for any locally scoped variables.)
  2. Runs serially or in parallel
  3. Runs on either a collection as input parameters, or a boolean process as a conditional test for ending the replication, or for a number of times.
@zippy zippy self-assigned this Aug 17, 2015
@zippy zippy added the partial label Aug 17, 2015
@zippy zippy added in progress and removed partial labels Aug 20, 2015
zippy added a commit that referenced this issue Aug 20, 2015
@zippy
Copy link
Owner Author

zippy commented Aug 20, 2015

9bfb524 adds scaffolding for replication.

@zippy
Copy link
Owner Author

zippy commented Aug 21, 2015

We need to figure out what replication returns, the value from the last iteration? a value via some kind of RETURN op, or yet something else, like no meaningful return value.

@zippy
Copy link
Owner Author

zippy commented Aug 21, 2015

09ef5c4 adds two types of end condition for replication:

  • if the condition parameter first evaluates to an INTEGER it assumes this is a simple do n times type replication, and just runs the replication code that many times.
  • if the condition parameter first evaluates to a BOOLEAN, then assumes that condition should be tested every time, and runs the replication while the boolean is true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant