From: adam Date: Fri, 20 Apr 2007 03:23:32 +0000 (-0400) Subject: add ellipses to metagrammar X-Git-Url: http://git.megacz.com/?p=sbp.git;a=commitdiff_plain;h=bbf7a47f19dc41e54799f2f1236ba2cd3042dcfe;hp=41a890f6e8c6f78a0beb573d5f6267bb3bea10a1 add ellipses to metagrammar darcs-hash:20070420032332-5007d-32ceba42e8e49c54ec481e0482707a293d650c25.gz --- diff --git a/tests/meta.g b/tests/meta.g index ac72619..b7dc2b8 100644 --- a/tests/meta.g +++ b/tests/meta.g @@ -1,4 +1,4 @@ - //funkanomitron +//funkanomitron s = ws Grammar ws Grammar:: = Declaration +/ ws @@ -45,13 +45,15 @@ e = e ^"!" | e ^"*/" e /ws | e ^"?" /ws | ^"^" Quoted + | ^"`" e + | ^"..." | "(" Word ^")" > ^"(" RHS ")" /ws | ^"~" e | ^"\\{" | ^"\\}" -Word:: = [.a-zA-Z0-9_]++ +Word:: = [.a-zA-Z0-9_]++ &~ "."+ Quoted:: = "\"" (~[\"\\] | escaped)+ "\"" | "\"\""