|
|
|
|
|
by benhoff
1630 days ago
|
|
I've often thought it would be cool to use AST's and perhaps code embeddings generated from machine learning as a tool to help students improve. If you've ever taught a course with intro level python, it quickly becomes apparent how repeatable the mistakes are, or where you didn't spend enough time. As a student, this is frustrating because the correction comes too late, it's why having someone knowledgeable over your shoulder can speed up your learning. The challenge that I believe ASTs present is that they only parse compliant code. So if someone makes a syntax error, it becomes a whole new ball game. I'd glanced at tree sitter to see if this could fix some of these issues, but I think it's a more fundamental problem than that. |
|
Existing code editors like VSCode do exactly this for better syntax highlighting of incomplete code.