Skip to content

Commit 9425d7b

Browse files
committed
feat: xcactivitylog support * type(json dict type)
1 parent 70cfe7e commit 9425d7b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xcactivitylog.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class TokenType(Enum):
1414
Array = 4
1515
Class = 5
1616
Instance = 6
17+
Json = 7
1718

1819

1920
def tokenizer(path):
@@ -68,6 +69,7 @@ def handler(index):
6869
ord(b"("): int_handler(TokenType.Array),
6970
ord(b"%"): str_handler(TokenType.Class),
7071
ord(b"@"): int_handler(TokenType.Instance),
72+
ord(b"*"): str_handler(TokenType.Json),
7173
}
7274

7375
i = 0
@@ -86,6 +88,7 @@ def handler(index):
8688

8789
def extract_compile_log(path):
8890
for type, value in tokenizer(path):
91+
# print(type, value)
8992
if type != TokenType.String:
9093
continue
9194
assert isinstance(value, str)

0 commit comments

Comments
 (0)