Skip to content

Add documentation for loops #44

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

Merged
merged 8 commits into from
May 1, 2020
Merged

Add documentation for loops #44

merged 8 commits into from
May 1, 2020

Conversation

arsalan0c
Copy link
Owner

No description provided.

@arsalan0c arsalan0c added the documentation Improvements or additions to documentation label Apr 29, 2020
@arsalan0c arsalan0c changed the title Add loops in specification Add documentation for loops Apr 29, 2020
@arsalan0c arsalan0c requested a review from anubh-v May 1, 2020 12:47
@@ -2,7 +2,7 @@ \section*{Restrictions}

\begin{itemize}
\item Return statements are only allowed in bodies of functions.
\item Return statements are not allowed in the bodies of while and for loops.
\item Return statements are allowed in the bodies of while and for loops, only if the loops are in the body of a function.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's make a separate PR for this, as it's a standalone change.

@anubh-v anubh-v merged commit 287adff into master May 1, 2020
arsalan0c added a commit that referenced this pull request May 2, 2020
…ixes) (source-academy#594)

* Fix bug: yield new array (#40)

* fix bug: yield new array for array expression

* Add user friendly REPL message (#43)

* add user friendly REPL message

* Add randomized amb operator (#15)

Adds the ambR operator which functions similarly to amb
but makes choices randomly instead of sequentially.

Also adds landing page and library documentation for
the operator, and adds this operator into the specs.

* Add while loops (#39)

This PR adds support for while loops, including break,
continue and return statements in the loop body.

It also tweaks the scheduler so that stackoverflow errors
are captured and displayed to the user.

Co-authored-by: anubh-v <[email protected]>

* Clear the stack trace of any error created in REPL (#46)

* Add for loops (#41)

This PR adds support for for loops, including break,
continue and return statements in the loop body.
Co-authored-by: Anubhav <[email protected]>

* Add documentation for loops (#44)



Co-authored-by: anubh-v <[email protected]>

* Improve comments in non-det interpreter (#47)

* Remove unhelpful comment

* Fix spelling in comment

Co-authored-by: Arsalan Cheema <[email protected]>
Co-authored-by: martin-henz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants