ref: e95be05dfa0c5fcc46dbfc6dba6e6a3e7e3d04d6
parent: ef08d1f341b85d8823b0aafbfb655acdcf0d9998
author: Ori Bernstein <ori@eigenstate.org>
date: Thu Oct 2 15:44:38 EDT 2014
Syntax change. To make this match more with Myrddin, as well as to highlight the terminators, use a ';;'.
--- a/bldfile
+++ b/bldfile
@@ -11,7 +11,7 @@
subdir.myr
types.myr
util.myr
-;
+;;
-man = mbld.1;
+man = mbld.1;;
--- a/parse.myr
+++ b/parse.myr
@@ -91,8 +91,8 @@
;;
skipspace(p)
- if !matchc(p, ';')
- failparse(p, "expected ';' terminating input list, got %c\n", peekc(p))
+ if !matchc(p, ';') || !matchc(p, ';')
+ failparse(p, "expected ';;' terminating input list, got %c\n", peekc(p))
;;
inst = true
@@ -132,8 +132,8 @@
| `std.Some wl: inputs = wl
;;
skipspace(p)
- if !matchc(p, ';')
- failparse(p, "expected ';' terminating input list\n")
+ if !matchc(p, ';') || !matchc(p, ';')
+ failparse(p, "expected ';;' terminating input list\n")
;;
-> inputs
}