Fix test, dump format.

This commit is contained in:
Chris Pressey 2019-10-21 21:23:14 +01:00
parent 684256f7e9
commit 40d9c57d64
2 changed files with 8 additions and 7 deletions

View File

@ -53,7 +53,7 @@ def process_input_files(filenames, options):
if options.dump_callgraph:
from sixtypical.callgraph import construct_callgraph
graph = construct_callgraph(program)
sys.stdout.write(json.dumps(graph, indent=4, sort_keys=True, separators=(',', ':')))
sys.stdout.write(json.dumps(graph, indent=4, sort_keys=True, separators=(',', ': ')))
compilation_roster = None
if options.optimize_fallthru:
@ -64,7 +64,7 @@ def process_input_files(filenames, options):
return
if label:
sys.stdout.write("*** {}:\n".format(label))
sys.stdout.write(json.dumps(data, indent=4, sort_keys=True, separators=(',', ':')))
sys.stdout.write(json.dumps(data, indent=4, sort_keys=True, separators=(',', ': ')))
sys.stdout.write("\n")
fa = FallthruAnalyzer(symtab, debug=options.debug)

View File

@ -15,8 +15,9 @@ The `main` routine is always called.
| define main routine
| {
| }
= [
= [
= "main"
= ]
= ]
= {
= "main": {
= "potentially-called-by": [],
= "potentially-calls": []
= }
= }