X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=tests%2Fmeta.g;h=b7dc2b85ad9d1ca64f9c09fe1a7d9c59de0fabbb;hp=b1552f1bdf129fe3a32e46e0c23d62ff3c189c86;hb=927c045f06deedc545be39d9a84cb0ac1f0dd939;hpb=22a2ca7685dcf29e9ddcc6e26443ea0277385fca diff --git a/tests/meta.g b/tests/meta.g index b1552f1..b7dc2b8 100644 --- a/tests/meta.g +++ b/tests/meta.g @@ -1,3 +1,4 @@ +//funkanomitron s = ws Grammar ws Grammar:: = Declaration +/ ws @@ -44,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)+ "\"" | "\"\"" @@ -63,5 +66,5 @@ escaped = "\n":: "\\n" | "\r":: "\\r" | "\\" ~[nr] -ws! = [ \r\n]** ("//" ~[\n]* "\n" ws)? - +ws! = [ \r\n]** + | [ \r\n]** "//" ~[\n]* "\n" ws