aboutsummaryrefslogtreecommitdiff
path: root/doc/plugin_tutorial/tuto0/theories
diff options
context:
space:
mode:
authorTalia Ringer2019-06-03 10:54:59 -0400
committerTalia Ringer2019-06-06 04:58:37 -0400
commit75c99f5c048ff8dd7daf0d1692fa91f3ca8aeaff (patch)
tree053c7aae588ef5cfaf2c2a3364c76922dcc23791 /doc/plugin_tutorial/tuto0/theories
parent4f7af2b09a935528d660a354f5e7672fc92e9a5c (diff)
Clean, document, and expand plugin tutorials 0 and 1
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.