浏览代码

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

正在加载...
取消
保存