From 05be04891b8948e6aac6d1f9c69f5eb0ecb95ef1 Mon Sep 17 00:00:00 2001 From: cfreksen Date: Sun, 29 Oct 2017 18:05:59 +0100 Subject: [PATCH] Remove __main__ functionality from parser.py. It was only there as scaffolding. --- parser.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/parser.py b/parser.py index 59e9002..eb626ef 100644 --- a/parser.py +++ b/parser.py @@ -493,15 +493,3 @@ class LLVMParser(object): """ return self.parser.parse(text, lexer=self.lexer) - - -if __name__ == '__main__': - p = LLVMParser() - p.build() - data = r''' -define void @tigermain (i64 %U_mainSL_8, i64 %U_mainDummy_9) { - %a = add i64 3, 5 ; please be 8 - ret i64 %a -} - ''' - print(p.parse(data))