def __init__(self):
        """
        Initialise a new parser.
        """
        # TODO how can you print the list of tokens when debugging?
        # TODO look into optimize and picklefile options
        self.parser = yacc.yacc(module=self,
                                tabmodule='parsing_table',
                                debug=logger.getEffectiveLevel() ==
                                logging.DEBUG)
def __init__ ( self ) : self . parser = yacc . yacc ( module = self , tabmodule = 'parsing_table' , debug = logger . getEffectiveLevel ( ) == logging . DEBUG )
Initialise a new parser.