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

Stray "_" in an Orc program causes a compiler crash #214

Open arthurp opened 6 years ago

arthurp commented 6 years ago

The crash is due to the fact that the "_" is a placeholder for lambda expressions. However if the "_" appears without a surrounding "{ }" then the placeholder (Placeholder() instance) will make it all the way through to the translator and cause a MatchError.

The translator should catch this case and print a useful error.