orc-lang / orc

Orc programming language implementation
https://orc.csres.utexas.edu/
BSD 3-Clause "New" or "Revised" License
40 stars 3 forks source link

allow unparenthesized val/lambda/if #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Allow unparenthesized lambda, declarations, and if on the RHS of a
combinator. For example:

  M() >x>
  val y = Z()
  (x,y)

These "prefix combinators" follow a predictable greedy rule: they assume
everything to the right is part of their body expression until they
encounter the start of a new expression.

Original issue reported on code.google.com by adrianqu...@gmail.com on 23 Apr 2009 at 4:25

GoogleCodeExporter commented 9 years ago

Original comment by adrianqu...@gmail.com on 23 Apr 2009 at 4:25

GoogleCodeExporter commented 9 years ago
We should make "if ... then" behave similarly. See:

http://groups.google.com/group/orc-lang/browse_thread/thread/30946df7c636beb1?hl
=en#

Original comment by adrianqu...@gmail.com on 4 Aug 2009 at 3:12

GoogleCodeExporter commented 9 years ago

Original comment by adrianqu...@gmail.com on 4 Aug 2009 at 3:12

GoogleCodeExporter commented 9 years ago
Fixed in r1780

Original comment by jthywissen on 9 Aug 2010 at 10:54