Dear all, After several hard working days, I have implemented a Fortran parser. Although it is still incomplete, the most thing that I am worrying about is the performance. I have tried it on a Fortran code with 2000+ lines, and it took around 20 seconds on my MacBook Pro for parsing. This can not be practical. So I should optimize the parser, but I have no idea where to start, and which parts should be heavily optimized.
The parser is located in https://gist.github.com/dongli/5791976, and the example can be run as: rspec rspec_fortran_parser.rb Any idea is appreciated! Best regards, Li
