ref: 9487b9fff85de0e0af948db417a20f9180aa009e
parent: 09c56b05cb89cfe9da4bf8ab3fc706850cc92814
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Jan 4 18:33:16 EST 2015
Use commas to separate attribute list entries. We used to use spaces. This breaks no existing code.
--- a/install.myr
+++ b/install.myr
@@ -7,6 +7,7 @@
use "subdir.use"
use "types.use"
use "util.use"
+use "build.use"
pkg bld =
const install : (p : parser# -> bool)
@@ -14,6 +15,7 @@
;;
const install = {p
+ buildall(p)
-> movetargs(p, false)
}
--- a/parse.myr
+++ b/parse.myr
@@ -226,11 +226,14 @@
else
al = std.slpush(al, (k, [][:]))
;;
+ if !matchc(p, ',')
+ break
+ ;;
| `std.None: break
;;
;;
if !matchc(p, '}')
- failparse(p, "expected '}' at end of attr list\n")
+ failparse(p, "expected '}' at end of attr list, got '%c'\n", peekc(p))
;;
if al.len == 0
-> `std.None