Open
Conversation
Contributor
|
"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
|
Contributor
Author
|
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. |
This file contains hidden or 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
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 trueTODO
Structin output-splitting mode