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 8575d91c66
commit 35b5d8c630
4 changed files with 669 additions and 552 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().