On Tuesday, January 13, 2015 at 10:06:50 AM UTC+5:30, Steven D'Aprano wrote: > On Mon, 12 Jan 2015 19:48:18 +0000, Ian wrote: > > > My recommendation would be to write a recursive decent parser for your > > files. > > > > That way will be easier to write, > > I know that writing parsers is a solved problem in computer science, and > that doing so is allegedly one of the more trivial things computer > scientists are supposed to be able to do,
"Solved-CS-problem" often is showing that the problem is unsolvable :-) http://blog.reverberate.org/2013/08/parsing-c-is-literally-undecidable.html -- https://mail.python.org/mailman/listinfo/python-list