frankpfenning / C0

C0 Language
4 stars 0 forks source link

Coin doesn't like elseless ifs anymore #52

Open robsimmons opened 11 years ago

robsimmons commented 11 years ago

If I recall, there used to be special-purpose logic for catching a double-enter after "if" and assuming there would be no "else" at that point. Whatever logic that used to be there is now gone, however.

$ coin
C0 interpreter (coin) 0.3.2 'Nickel' (r268, Mon Jan 14 21:04:25 EST 2013)
Type `#help' for help or `#quit' to exit.
--> int x = 0;   
x is 0 (int)
--> int y = 3;
y is 3 (int)
--> if (x == y) x++;
... 
... 
... 
... {}
robsimmons commented 9 years ago

Also a problem for parsing annotations all on their own:

--> //@assert true;
... 
... 
... 
... 
... {}