| | |
| | | continue
|
| | |
|
| | | if "struct" in line:
|
| | | tagIndex = line.index("tag")
|
| | | line = line.strip()
|
| | | if "{" in line:
|
| | | tableName = line[tagIndex + 3:line.index("{")]
|
| | | tableName = line[6:line.index("{")]
|
| | | else:
|
| | | tableName = line[tagIndex + 3:]
|
| | | tableName = tableName.replace(" ", "") # 表åè±æå
|
| | | tableName = line[6:]
|
| | | tableName = tableName.replace("\t", "").replace(" ", "") # 表åè±æå
|
| | | if tableName.startswith("tag"):
|
| | | tableName = tableName[3:]
|
| | | continue
|
| | |
|
| | | noteInfo = " #" # åæ®µæ³¨é说æ
|
| | |
| | | if not fieldType:
|
| | | if "struct" not in line and "{" not in line and "}" not in line:
|
| | | print "### ç±»åå®ä¹é误表 ###"
|
| | | print "struct tag%s" % tableName
|
| | | print "struct %s" % tableName
|
| | | print line
|
| | | raise
|
| | | continue
|