indutny / candor

Experimental VM for a `Candor` language
http://candor-lang.org/
177 stars 16 forks source link

else statement parsing error #23

Closed bmeck closed 12 years ago

bmeck commented 12 years ago
s () {
  if (true) return
  else return
}

generates

candor>./can ~/Desktop/async.can
Error on line /Users/bradleymeck/Desktop/async.can#3: Unexpected '.' or '['

due to a newline before the else

indutny commented 12 years ago

Fixed error message, syntax won't be changed...