예제 #1
0
def parse_file(filename):
	global output
	global tokens

	output = ''
	gdllex.lex_file(filename)
	tokens = gdllex.tokens

	yacc.yacc()
	file = open(filename, 'r').read()
	yacc.parse(file)
예제 #2
0
파일: gdlyacc.py 프로젝트: aahlad/soar
def parse_file(filename):
    global int_rep
    global tokens

    int_rep = IntermediateRep()
    gdllex.lex_file(filename)
    tokens = gdllex.tokens

    yacc.yacc()
    file = open(filename, 'rU').read()
    yacc.parse(file)
예제 #3
0
def parse_file(filename):
    global output
    global tokens

    output = ''
    gdllex.lex_file(filename)
    tokens = gdllex.tokens

    yacc.yacc()
    file = open(filename, 'r').read()
    yacc.parse(file)
예제 #4
0
def parse_file(filename):
	global int_rep
	global tokens

	int_rep = IntermediateRep()
	gdllex.lex_file(filename)
	tokens = gdllex.tokens

	yacc.yacc()
	file = open(filename, 'rU').read()
	yacc.parse(file)