import quex.input.command_line.core as command_line import quex.input.command_line.query as query import quex.core as core except BaseException as instance: exception_checker.handle(instance) try: pass # import psyco # psyco.full() except: pass if __name__ == "__main__": try: quex.DEFINITIONS.check() # (*) Test Exceptions __________________________________________________ if exception_checker.do(sys.argv): # Done: Tests about exceptions have been performed pass # (*) The Job __________________________________________________________ elif command_line.do(sys.argv): # To do: Interpret input files and generate code or drawings. core.do() except BaseException as instance: exception_checker.handle(instance)
# This script needs to be located one directory above 'quex.' # so that it ca get the imports straight. from quex.input.setup import setup as Setup import quex.input.setup_parser as setup_parser import quex.input.query as query_parser import quex.core as core from quex.frs_py.file_in import error_msg if __name__ == "__main__": try: # (*) Call only for query? ___________________________________________________________ if query_parser.do(sys.argv): # if quex has been called for UCS property sys.exit(0) # query, then no further processing is performed # (*) Get Setup from Command Line and Config File ____________________________________ setup_parser.do(sys.argv) if Setup.plot_graphic_format_list_f: print quex.output.graphviz.interface.get_supported_graphic_format_description() sys.exit(0) # (*) Run the Quex ___________________________________________________________________ if Setup.plot_graphic_format == "": core.do() # 'normal' code generation else: core.do_plot() # plot transition graphs except "": # AssertionError: error_msg("Assertion error -- please report a bug at http://quex.sourceforge.net.")
try: pass # import psyco # psyco.full() except: pass if __name__ == "__main__": try: quex.DEFINITIONS.check() # (*) Test Exceptions __________________________________________________ if exception_checker.do(sys.argv): # Done: Tests about exceptions have been performed pass # (*) Query ____________________________________________________________ elif query.do(sys.argv): # Done: Queries about unicode sets and regular expressions pass # (*) The Real Job _____________________________________________________ elif command_line.do(sys.argv): # To do: Interpret input files and generate code or drawings. core.do() except BaseException as instance: exception_checker.handle(instance)
import quex.input.query as query_parser import quex.core as core from quex.frs_py.file_in import error_msg if __name__ == "__main__": try: # (*) Call only for query? ___________________________________________________________ if query_parser.do( sys.argv): # if quex has been called for UCS property sys.exit(0) # query, then no further processing is performed # (*) Get Setup from Command Line and Config File ____________________________________ setup_parser.do(sys.argv) if Setup.plot_graphic_format_list_f: print quex.output.graphviz.interface.get_supported_graphic_format_description( ) sys.exit(0) # (*) Run the Quex ___________________________________________________________________ if Setup.plot_graphic_format == "": core.do() # 'normal' code generation else: core.do_plot() # plot transition graphs except "": # AssertionError: error_msg( "Assertion error -- please report a bug at http://quex.sourceforge.net." )