def main(filename,debug=False): lexer = lex.getlex() s = file_.getSource( filename ) lexer.input(s) yacc.get_yacc(lexer,filename,debug)
def main(filename): lexer = lex.getlex() s = file_.getSource( filename ) lexer.input(s) yacc.get_yacc(lexer)
def main(filename,debug=False): lexer = lex.getlex() s = file_.getSource( filename ) lexer.input(s) parser()
def main(filename,outfile): lexer = lex.getlex() #f = open("./result.txt","w") #sys.stderr = f #try: s = file_.getSource( filename ) lexer.input(s) yacc.get_yacc(lexer,outfile)
def main(filename): lexer = lex.getlex() s = file_.getSource(filename) lexer.input(s) yacc.get_yacc(lexer) for x in file_.getTokenList(lexer): print x
def compile( filename ): lexer = breed_lex.getlex() s = file_.getSource( filename ) lexer.input(s) breed_yacc.get_yacc(lexer)