Skip to content

Conversation

@yyc
Copy link
Contributor

@yyc yyc commented Aug 28, 2018

const declarations are now block-scoped to if statements

adding block scoping to for loops will come later

http://13.250.115.8/playground#chap=2&ext=NONE&prgrm=MYewdgzgLgBAHjAvDKAnArgUwNwChcCWAZgBRpYCUMA3rjPTKJLAskQIYA2EOuAvjEzdMNOgybR4SGB2F4%2B%2BONiA

@yyc yyc self-assigned this Aug 28, 2018
@yyc yyc requested review from martin-henz and ning-y August 28, 2018 04:03
@coveralls
Copy link

Pull Request Test Coverage Report for Build 75

  • 11 of 11 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+3.6%) to 51.771%

Totals Coverage Status
Change from base Build 74: 3.6%
Covered Lines: 666
Relevant Lines: 1194

💛 - Coveralls

@yyc yyc requested a review from remo5000 August 28, 2018 04:35
Copy link
Contributor

@remo5000 remo5000 left a comment

Choose a reason for hiding this comment

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

LTGM, thanks for taking the time to do this! 😄

@yyc yyc merged commit f0e76a3 into master Aug 28, 2018
@thomastanck thomastanck deleted the block-scoping branch December 9, 2018 06:31
martin-henz added a commit that referenced this pull request May 2, 2020
…ixes) (#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]>
martin-henz added a commit that referenced this pull request May 4, 2020
* REPL: add variant option

* .

* 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

* allow only supported chapter and variant combinations

* format

Co-authored-by: martin-henz <[email protected]>
Co-authored-by: anubh-v <[email protected]>
Co-authored-by: Anubhav <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants