瀏覽代碼

Change format of symbols to fit databse model.

tags/v1.0^2
Benjamin Attal 10 年之前
父節點
當前提交
ca4bb8ff42
共有 1 個檔案被更改,包括 7 行新增0 行删除
  1. +7
    -0
      bitshift/parser/__init__.py

+ 7
- 0
bitshift/parser/__init__.py 查看文件

@@ -125,4 +125,11 @@ def parse(codelet):
server_socket.send("%d\n%s" % (len(source), source))

symbols = json.loads(_recv_data(server_socket))
symbols = {key: [(name, [tuple(loc)
for loc in syms[name]['assignments']],
[tuple(loc) for loc in syms[name]['uses']])
for name in syms.keys()]
for key, syms in symbols.iteritems()}

print symbols
codelet.symbols = symbols

Loading…
取消
儲存