blob: bbe2e28075d398c7b0d4077245ddc97e0a138cc8 (
plain) (
tree)
|
|
from front.lexer import Lexer
from front.parser import Parser
from front.scope import Scope
from back.tac import TACList
import sys
def main():
ast = Parser(Lexer(sys.stdin.read())).parse()
scope = Scope()
ast.generate()
print scope
sys.stdout.write(repr(TACList()))
sys.stdout.flush()
if __name__ == "__main__":
main()
|