Пример #1
0
Файл: main.py Проект: ttch/breed
def main(filename,debug=False):
	lexer = lex.getlex()

	s = file_.getSource( filename )

	lexer.input(s)
	yacc.get_yacc(lexer,filename,debug)
Пример #2
0
def main(filename):
	lexer = lex.getlex()

	s = file_.getSource( filename )

	lexer.input(s)
	yacc.get_yacc(lexer)
Пример #3
0
def main(filename,debug=False):
	lexer = lex.getlex()

	s = file_.getSource( filename )

	lexer.input(s)

	parser()
Пример #4
0
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)
Пример #5
0
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