Parsing the text of models isn't the best way to get information about them. The _meta attribute of a model provides tons of information about a model, its fields, and how to deal with its database representation.<p>Parsers are neat in general, so if you had fun with it, more power to you.
Neat. The AST module was a good way for me as a novice-intermediate programmer to get better acquainted with parsing. I have a small module that parses raw Solr-style querystrings into Haystack's SQ objects. Haven't touched it in months but it was a good learning exercise. <a href="https://github.com/mattdeboard/rawqs-sq" rel="nofollow">https://github.com/mattdeboard/rawqs-sq</a>