community service essay student essays summary I just wanted to share a little experience with generating an AS3 parser using antlr and python. http://www.fiascoultimate.com/personal-experience-essay/
I was trying first to create the parser using GNU Flex and Bison in C, probably the best way for a very performancing parser. http://rest-cor.org/?philosophy-papers-term-papers philosophy papers term papers
Yeah, that’s right.. but looking at the antlr syntax I realized that’s easier and easier. http://www.jadecoastjewelry.com/geology-phd-thesis/
Moreover I start using this very useful eclipse plugin for antlr debugging which made my life easier!
help with writing a college paper
http://www.csq.cz/?need-help-writing-a-paper need help writing a paper The grammar file I created is a compromise between the asdt grammar file and the ECMA-262 grammar specification.
essay writing ppt presentation
cheap online price price viagra Once finished working on my eclipse project I’ve managed to parse succesfully all the adobe corelibs files using this java test file:
dissertation abstracts online citation
http://gccwines.com/essay-writing-ks2/ essay writing ks2 Ok, done that I decided to export the grammar file for python (thanks to antrl python export feature).
do my assiment paper for me online
Everything works fine also for python, but I realized that the python script were so much slower than the java one!
L = AS3Lexer.Lexer(filename);
P = AS3Parser.Parser(L);
ast = P.getAST();
On a 75Kb actionscript file the python script took about 7 seconds to run, while the java application only 2 seconds. I know python interpreter caould be slower than many other languages, but I never thought so much slower.
So I run the python hotshot profiler to see which could be the bottleneck in the python script and I found most of the problems were due to unuseless antlr (the python module) method’s calls.
After making corrections to the antlr.py file the same script took exactly half of the time. Now 3 seconds. Wow 🙂
But not fast enough.
So I enabled for the antlr python script psyco module and this time the same script took my culture essay only 1.6 seconds.
Now the python script is fast enough, even if I’m sure I can make more optimizations in the antlr module…