hedyorg / hedy

Hedy is a gradual programming language to teach children programming. Gradual languages use different language levels, where each level adds new concepts and syntactic complexity. At the end of the Hedy level sequence, kids master a subset of syntactically valid Python.
https://www.hedy.org
European Union Public License 1.2
1.27k stars 282 forks source link

Error message for new line #33

Closed ogoletti closed 4 years ago

ogoletti commented 4 years ago

Error messages should be hidden or at least simplified. (maybe this should be a broader issue, linked to #12 ?) Empty lines are not valid syntax and throws :

The server couldn't translate this Hedy program to Python.
Unexpected end-of-input. Expected one of: * LETTER * __ANON_1 * __ANON_1 * __ANON_1 * DIGIT * __ANON_1 * __ANON_1 * __ANON_1
Felienne commented 4 years ago

Empty lines addressed by https://github.com/Felienne/hedy/commit/8d7f424e353629d7b6822793fd2d1b80e718f349

Better error messages is still needed indeed, making a new issue for that.