-
Notifications
You must be signed in to change notification settings - Fork 48
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
WIP: Output to RST #50
Open
Vertmo
wants to merge
8
commits into
ott-lang:master
Choose a base branch
from
Vertmo:rst
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
"reStructuredText (RST, ReST, or reST) is a file format for textual
data used primarily in the Python programming language community for
technical documentation" [wikipedia]
I doubt we want to complicate the Ott code with support for this - is
there really a broad motivation?
…On 05/06/2019, Basile Pesin ***@***.***> wrote:
I've started working on an output to ReStructuredText, a format mainly used
for documentation.
### Usage
* `ott [...] -o file.rst`
* secondary mode : split the output into multiple files (one per rule /
production) with the option `-rst_split_output true`
### TODO
[ ] Document the mode
[ ] Handle cases for other `Struct` in output-splitting mode
[ ] Test with more complete specs
You can view, comment on, or merge this pull request online at:
#50
-- Commit Summary --
* Creating an empty rst file
* Displaying relations OK for non-merge source
* Support for -merge true
* Displaying grammar rules
* Added sort to take the grammar rules to the top
* Changed the indent for grammar rules
* First version of split output
* Some aesthetic changes
-- File Changes --
M src/auxl.ml (3)
M src/defns.ml (41)
M src/defns.mli (1)
M src/embed_pp.ml (5)
M src/grammar_pp.ml (64)
M src/main.ml (25)
M src/system_pp.ml (117)
M src/system_pp.mli (3)
M src/types.ml (6)
-- Patch Links --
https://github.com/ott-lang/ott/pull/50.patch
https://github.com/ott-lang/ott/pull/50.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#50
|
Well, to be honest I was working on this mainly to serve my specific purpose. However, it's interesting to note that rst is used in the ReadTheDocs tool, which powers (among other things) the documentation of dune (https://dune.readthedocs.io/en/latest/) and Coq itself (https://coq.inria.fr/distrib/current/refman/) so I'd say it's still relevant for users of ott. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've started working on an output to ReStructuredText, a format mainly used for documentation.
Usage
ott [...] -o file.rst
-rst_split_output true
TODO
Struct
in output-splitting mode