def main():
    ais = ANTLRFileStream(sys.argv[1])
    lexer = PropertyFileLexer(ais)
    tokens = CommonTokenStream(lexer)
    parser = PropertyFileParser(tokens)
    tree = parser.file()

    loader = PropertyFileVisitor()
    loader.visit(tree)

    print loader.props
def main():
    ais = ANTLRFileStream(sys.argv[1])
    lexer = PropertyFileLexer(ais)
    tokens = CommonTokenStream(lexer)
    parser = PropertyFileParser(tokens)
    tree = parser.file()

    loader = PropertyFileVisitor()
    loader.visit(tree)

    print loader.props
def main():
    ais = ANTLRFileStream(sys.argv[1])
    lexer = PropertyFileLexer(ais)
    tokens = CommonTokenStream(lexer)
    parser = PropertyFileParser(tokens)
    tree = parser.file()

    walker = ParseTreeWalker()

    loader = PropertyFileLoader()
    walker.walk(loader, tree)
    print loader.props
def main():
    ais = ANTLRFileStream(sys.argv[1])
    lexer = PropertyFileLexer(ais)
    tokens = CommonTokenStream(lexer)
    parser = PropertyFileParser(tokens)
    tree = parser.file()

    walker = ParseTreeWalker()

    loader = PropertyFileLoader()
    walker.walk(loader, tree)
    print loader.props