summaryrefslogblamecommitdiffstats
path: root/src/__init__.py
blob: e5d64573ea59219051dcf6591d8224bb7ae4dc1e (plain) (tree)
1
2
3
4
5
6
7
8

                               
                             
                            
                                    
          

           


                                                 



                                      


                          
from front.lexer import Lexer
from front.parser import Parser
from front.scope import Scope
from back.tac import TACList
from back.generator import Generator
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()
    Generator().generate()

if __name__ == "__main__":
    main()