summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2013-08-20 15:51:12 -0400
committerOri Bernstein <ori@eigenstate.org>2013-08-20 15:51:12 -0400
commit8c7095cc5e7701e9e9f6f17d8dd60e32c2dc5bd0 (patch)
tree73f65f6c69c9418024c4dcdfef0331958fbfcdb9
parent8c6a9b940b85f46056519373fcca1d9aefd49eec (diff)
downloadmc-8c7095cc5e7701e9e9f6f17d8dd60e32c2dc5bd0.tar.gz
Reformat example code.
-rw-r--r--doc/lang.txt25
1 files changed, 15 insertions, 10 deletions
diff --git a/doc/lang.txt b/doc/lang.txt
index d9c07e2..008c95a 100644
--- a/doc/lang.txt
+++ b/doc/lang.txt
@@ -331,16 +331,21 @@ TABLE OF CONTENTS:
const Val234 = `Val 234 /* set up a constant value */
var v = `Val 123 /* set up variable to match */
match v
- /* pattern clauses */
- `Val 123: std.put("Matched literal union pat\n");;
-
- Val234: std.put("Matched const value pat\n");;
-
- `Val a: std.put("Matched pattern with capture\n")
- std.put("Captured value: a = %i\n", a)
- ;;
- a std.put("A top level bind matches anything.");;
- `Val 111 std.put("Unreachable block");;
+ /* pattern clauses */
+ `Val 123:
+ std.put("Matched literal union pat\n");;
+ Val234:
+ std.put("Matched const value pat\n")
+ ;;
+ `Val a:
+ std.put("Matched pattern with capture\n")
+ std.put("Captured value: a = %i\n", a)
+ ;;
+ a
+ std.put("A top level bind matches anything.");;
+ `Val 111
+ std.put("Unreachable block.")
+ ;;
;;