An example of how to correctly parse python-like indentation-scoped files using flex (and bison).