myst-lang / myst

A structured, dynamic, general-purpose language.
http://myst-lang.org
MIT License
119 stars 17 forks source link

Fixes #168. Allow top-level expressions as right-side of logicals. #170

Closed faultyserver closed 6 years ago

faultyserver commented 6 years ago

Addressing the bug from #168, the parser now allows raise, break, next, and return expressions to appear on the right-side of a logical expression.

Similar to infix assignments, flow control expressions "take over" the expression, and subsequent components of the expression will be parsed as the value of the control expression, rather than the parent. See the added specs for more details.