incorporated fabian's amazing precedence ordering script to parser_grammar_converter.py