This commit is contained in:
parent
c57e320c94
commit
baa77387d7
2 changed files with 6 additions and 25 deletions
|
|
@ -97,24 +97,9 @@ Partial Output::
|
|||
proc helloWorld(times: int) {.raises: [], tags: [].}
|
||||
...
|
||||
|
||||
The full output can be seen here: `docgen_sample2.html <docgen_sample2.html>`_.
|
||||
|
||||
The older version of the ``doc`` command, now renamed ``doc0`` runs before
|
||||
semantic checking which means it lacks some of the things ``doc`` will output.
|
||||
|
||||
The ``doc0`` command::
|
||||
nim doc0 sample
|
||||
|
||||
Partial Output::
|
||||
...
|
||||
proc helloWorld*(times: int)
|
||||
...
|
||||
|
||||
Output can be viewed in full here: `docgen_sample.html <docgen_sample.html>`_.
|
||||
As you can see, the tool has extracted less information than what the ``doc``
|
||||
command provides, such as pragmas attached implicitly by the compiler. This type
|
||||
of information is not available from looking at the AST (Abstract Syntax Tree)
|
||||
prior to semantic checking, which is why ``doc0`` doesn't show it.
|
||||
The full output can be seen here: `docgen_sample.html <docgen_sample.html>`_.
|
||||
It runs after semantic checking, and includes pragmas attached implicitly by the
|
||||
compiler.
|
||||
|
||||
|
||||
JSON
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue