This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
23
unikernel/duniverse/dune_/doc/reference/dune/toplevel.rst
Normal file
23
unikernel/duniverse/dune_/doc/reference/dune/toplevel.rst
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
toplevel
|
||||
--------
|
||||
|
||||
The ``toplevel`` stanza allows one to define custom toplevels. Custom toplevels
|
||||
automatically load a set of specified libraries and are runnable like normal
|
||||
executables. Example:
|
||||
|
||||
.. code:: dune
|
||||
|
||||
(toplevel
|
||||
(name tt)
|
||||
(libraries str))
|
||||
|
||||
This will create a toplevel with the ``str`` library loaded. We may build and
|
||||
run this toplevel with:
|
||||
|
||||
.. code:: console
|
||||
|
||||
$ dune exec ./tt.exe
|
||||
|
||||
``(preprocess (pps ...))`` is the same as the ``(preprocess (pps ...))`` field
|
||||
of :doc:`library`. Currently, ``action`` and ``future_syntax`` are not
|
||||
supported in the toplevel.
|
||||
Loading…
Add table
Add a link
Reference in a new issue