tmpvar / livecad

live coding of 3d surfaces and objects
livecad.wtf
53 stars 2 forks source link

drop syntax error message at location in editor #38

Closed tmpvar closed 10 years ago

tmpvar commented 10 years ago

instead of just highlighting the line, lets drop the reason why the syntax is invalid and show the user exactly where the problem is.

tmpvar commented 10 years ago

unexpected token - 75c1e4d1bf8f2fd70967dd51c2ec547cbc348459

screen shot 2014-11-06 at 4 21 08 pm

tmpvar commented 10 years ago

unexpected identifier is going to be a bit more difficult as it's lacking any sort of usable information

screen shot 2014-11-06 at 4 26 28 pm

tmpvar commented 10 years ago

success cases

screen shot 2014-11-06 at 11 01 01 pm screen shot 2014-11-06 at 11 00 49 pm screen shot 2014-11-06 at 11 00 34 pm

remaining major failure case

screen shot 2014-11-06 at 11 01 16 pm

tmpvar commented 10 years ago

screen shot 2014-11-08 at 7 02 04 am