from st import  SymbolTable
import sys
from lexer import tokenize
from parser_temp import parse


lexer = tokenize()
parser = parse()


with open(sys.argv[1], 'r') as myfile:
    program = myfile.read().replace('\n', '')
    parser.parse(lexer.lex(program)).eval(SymbolTable())


from st import  SymbolTable
import sys
from lexer import tokenize
from parser_temp import parse


lexer = tokenize()
parser = parse()


with open(sys.argv[1], 'r') as myfile:
    program = myfile.read().replace('\n', '')
    parser.parse(lexer.lex(program)).eval(SymbolTable())

