Remove __main__ functionality from parser.py.

It was only there as scaffolding.
This commit is contained in:
cfreksen 2017-10-29 18:05:59 +01:00
parent 7319479e9a
commit 05be04891b
No known key found for this signature in database
GPG Key ID: EAC13EE101008978

View File

@ -493,15 +493,3 @@ class LLVMParser(object):
""" """
return self.parser.parse(text, lexer=self.lexer) 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))