Updated parser.py

This commit is contained in:
2019-01-29 18:11:26 +01:00
parent 34a5203c68
commit d5044a7f1e
-4
View File
@@ -156,7 +156,6 @@ class PARSEOBJECT:
tempfile.append(templine) tempfile.append(templine)
enum_cnt += 1 enum_cnt += 1
continue continue
continue
if len(l) == 3: if len(l) == 3:
if l[0].endswith(","): if l[0].endswith(","):
tempstr = l[0] tempstr = l[0]
@@ -166,15 +165,12 @@ class PARSEOBJECT:
templine.append(enum_cnt+"\n") templine.append(enum_cnt+"\n")
tempfile.append(templine) tempfile.append(templine)
continue continue
continue
if l[0] == "TOKEN_RBRACE" and len(l) == 3: if l[0] == "TOKEN_RBRACE" and len(l) == 3:
self.enum_begin = False self.enum_begin = False
self.typedef_enum = False self.typedef_enum = False
self.inside_typedef = False self.inside_typedef = False
enum_cnt = 0 enum_cnt = 0
continue continue
continue
continue
return tempfile return tempfile
def parse_typedef(self, l): def parse_typedef(self, l):