Exactly. This doesn't look like it was ever meant to be good C code, but to as part of an illustration/exercise on parsing as part of a languages/compilers/etc course.
So much educational stuff where the poster has utterly missed the point gets posted, and I strongly suspect this is more of the same. Such things are not "real world examples of terrible code" and as such should be against the rules.
View all comments
Show parent comment
2
u/keethraxmn Sep 24 '21 edited Sep 24 '21
Exactly. This doesn't look like it was ever meant to be good C code, but to as part of an illustration/exercise on parsing as part of a languages/compilers/etc course.
So much educational stuff where the poster has utterly missed the point gets posted, and I strongly suspect this is more of the same. Such things are not "real world examples of terrible code" and as such should be against the rules.