Replies: 5 comments
-
The more I think about this, the more I really like this idea, esp since we also have the UI and the mechanics to indicate skipped lines with the "sleepy dude": Would love to see this happening as a student project! |
Beta Was this translation helpful? Give feedback.
-
Great news! @ToniSkulj would love to pick this up as his BSc project! |
Beta Was this translation helpful? Give feedback.
-
I think Gidget removed this feature, notice that Gidget is not back at his original place! Which he should be if the last left were to be executed. |
Beta Was this translation helpful? Give feedback.
-
A little update. The plan is to skip faulty code (no matter where this line is and how many there are), currently, when a user adds faulty code a ParseError is raised. We would need to replace this with a rule parse_error. Essentially a rule that will match anything after all rules have been tried. In the visitor method of this rule, the faulty code would be replaced with nothing (an empty string). We would still need to know where this faulty code is and what it is so we can give feedback to the user. This is where #4094 comes into play. After finishing/merging #4094 we can start implementing this. Below is a working example (run locally): Hedy code:
Notice that the last print statement is wrong. The first 2 lines will execute but the last one is removed,
After that, we could extend this idea to other errors. |
Beta Was this translation helpful? Give feedback.
-
The sourcemapper has been merged #4094 🥳 |
Beta Was this translation helpful? Give feedback.
-
In a talk I saw about Gidget (very cool and inspiring in any case!) I noticed they do something supersmart... they simply skip faulty lines, accompanied with an error messages saying the line will be skipped.
Since we have meta enabled in the whole transpiler (since #3155) we can probably do something similar, but how to communicate this to kids is a bit unclear, so I am making this into a discussion rather than an issue.
Beta Was this translation helpful? Give feedback.
All reactions