Re:Learn Python ASTs, by building your own linter
by hsbauauvhabzb on Wednesday December 29, 2021 @05:39PM
(#29731058)
Wouldn’t that be impossible? The structure of python is finite, and invalid deviations are infinite. Sure any language AST compiler could be more helpful, but they can’t take trash and turn it to gold.
[ Parent
| on HN ]
Re:Learn Python ASTs, by building your own linter
by TuringTest on Wednesday December 29, 2021 @06:04PM
(#29731293)
In the context of programming lessons, there is a known correct program. Wouldn't it be possible to calculate the distance between what has been typed and how the correct finished program should be, to guide students into correcting the non-parsing parts of their code?