示例#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
文件: main.py 项目: supernature/breed
def main(filename):
	lexer = lex.getlex()

	s = file_.getSource( filename )

	lexer.input(s)
	yacc.get_yacc(lexer)
示例#3
0
文件: parser.py 项目: ttch/LRParser
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
文件: main.py 项目: supernature/breed
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
示例#6
0
def compile( filename ):
	lexer = breed_lex.getlex()

	s = file_.getSource( filename )
	lexer.input(s)
	breed_yacc.get_yacc(lexer)