aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Laporte2019-02-18 13:55:09 +0000
committerVincent Laporte2019-02-25 10:05:34 +0000
commita27d9d43a8e1c1a1629cc72c87e582c323b503c7 (patch)
treedf6b872c07590834affe462732e49c12707d1f36
parent4c48fcace7612e2f1eaf7ffa6e5265282dd0b549 (diff)
[Manual] Document the “Primitive” command
-rw-r--r--doc/sphinx/proof-engine/vernacular-commands.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/sphinx/proof-engine/vernacular-commands.rst b/doc/sphinx/proof-engine/vernacular-commands.rst
index 001bacc9ec..342425567e 100644
--- a/doc/sphinx/proof-engine/vernacular-commands.rst
+++ b/doc/sphinx/proof-engine/vernacular-commands.rst
@@ -1250,3 +1250,17 @@ Inlining hints for the fast reduction machines
Due to its internal nature, this command is not for general use. It is meant
to appear only in standard libraries and in support libraries of plug-ins.
+
+Registering primitive operations
+--------------------------------
+
+.. cmd:: Primitive @ident__1 := #@ident__2.
+
+ Declares :n:`@ident__1` as the primitive operator :n:`#@ident__2`. When
+ running this command, the type of the primitive should be already known by
+ the kernel (this is achieved through this command for primitive types and
+ through the :cmd:`Register` command with the :g:`kernel` name-space for other
+ types).
+
+ Due to its internal nature, this command is not for general use. It is meant
+ to appear only in standard libraries and in support libraries of plug-ins.