Remove __main__ functionality from parser.py.
It was only there as scaffolding.
This commit is contained in:
parent
7319479e9a
commit
05be04891b
12
parser.py
12
parser.py
|
@ -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))
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user