MCPcopy Create free account
hub / github.com/ccxt/ccxt / serialize

Function serialize

python/ccxt/static_dependencies/lark/tools/serialize.py:15–20  ·  view source on GitHub ↗
(lark_inst, outfile)

Source from the content-addressed store, hash-verified

13
14
15def serialize(lark_inst, outfile):
16 data, memo = lark_inst.memo_serialize([TerminalDef, Rule])
17 outfile.write('{\n')
18 outfile.write(' "data": %s,\n' % json.dumps(data))
19 outfile.write(' "memo": %s\n' % json.dumps(memo))
20 outfile.write('}\n')
21
22
23def main():

Callers 1

mainFunction · 0.70

Calls 3

memo_serializeMethod · 0.80
writeMethod · 0.80
dumpsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…