-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add attributes to sail_doc_backend output
Rename _to_json to json_of_ to better match other usages Refactor Pretty_print_sail, adding a Pretty_print_sail.Printer functor which can be configured for different use cases. The module contains a include Printer (Default_print_config) so other code can just use Pretty_print_sail as before. The main use for this is in the documentation generation, as we want to be able to format code slightly differently than when we just dump the AST for debugging, e.g. re-introduce overloads. This is handled by the `resugar` flag in the pretty-printer config. The eventual ideal flow would be: constant-propagate -> pretty_print w/ resugar -> re-parse -> format_sail but we don't yet do the last two steps
- Loading branch information
Showing
10 changed files
with
1,033 additions
and
843 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.