aboutsummaryrefslogtreecommitdiff
path: root/doc/plugin_tutorial/tuto0/theories
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2019-06-06 21:33:30 +0200
committerPierre-Marie Pédrot2019-06-06 21:33:30 +0200
commit53e97e17e363e5b6f808b7e8d2f7eab69e236705 (patch)
tree1b1f32b16d9e45a0a6d5d987f7527c2f22c2c6d2 /doc/plugin_tutorial/tuto0/theories
parent20ee51330564b9ae6c3d3d0981db5184f99572ed (diff)
parent75c99f5c048ff8dd7daf0d1692fa91f3ca8aeaff (diff)
Merge PR #10304: Clean up tuto0 and tuto1 to use better practices and explain more
Ack-by: SkySkimmer Reviewed-by: gares Reviewed-by: ppedrot Ack-by: tlringer
Diffstat (limited to 'doc/plugin_tutorial/tuto0/theories')
-rw-r--r--doc/plugin_tutorial/tuto0/theories/Demo.v20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/plugin_tutorial/tuto0/theories/Demo.v b/doc/plugin_tutorial/tuto0/theories/Demo.v
index bdc61986af..54d5239421 100644
--- a/doc/plugin_tutorial/tuto0/theories/Demo.v
+++ b/doc/plugin_tutorial/tuto0/theories/Demo.v
@@ -1,8 +1,28 @@
From Tuto0 Require Import Loader.
+(*** Printing messages ***)
+
HelloWorld.
Lemma test : True.
Proof.
hello_world.
Abort.
+
+(*** Printing warnings ***)
+
+HelloWarning.
+
+Lemma test : True.
+Proof.
+hello_warning.
+Abort.
+
+(*** Signaling errors ***)
+
+Fail HelloError.
+
+Lemma test : True.
+Proof.
+Fail hello_error.
+Abort.