after a lot of grammar wrestling, got the if-else chains to parse unambiguously. Now you only need a single period to close chains of any length.

This commit is contained in:
Jeremy Ashkenas
2009-12-18 00:49:23 -05:00
parent a50446a0ca
commit 049358d006
3 changed files with 46 additions and 16 deletions

View File

@@ -42,6 +42,8 @@ multiline: [
if submarine.shields_up
full_speed_ahead()
fire_torpedos()
else if submarine.sinking
abandon_ship()
else
run_away().