-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON post process - re added #2642
Conversation
This reverts commit 2cabba7.
The C semantics doesn't crash anymore, but it still fails with the post-processing step because of #2671 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would still like someone else to review this who is more familiar with the json and python code, but this seems fine from my perspective.
@@ -150,6 +156,11 @@ public CompiledDefinition run(File definitionFile, String mainModuleName, String | |||
// final check for sort correctness | |||
for (Module m : mutable(kompiledDefinition.modules())) | |||
m.checkSorts(); | |||
if (kompileOptions.postProcess != null) { | |||
kompiledDefinition = postProcessJSON(kompiledDefinition, kompileOptions.postProcess); | |||
files.saveToKompiled("jsoned.txt", kompiledDefinition.toString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would call this post-processed.txt
instead.
Adding back the changes from #2581, w/o the commit that broke C-semantics