checkpoint
[sbp.git] / tests / meta.g
index eba7a6d..e81e67c 100644 (file)
@@ -13,7 +13,6 @@ PreSequence   = ps::  Elements
               |       PreSequence !wp ^"/"  !ws e
               |       PreSequence     ^"->"     e /ws
               |       (Quoted|word)   ^"::" PreSequence /ws
-              |       PreSequence     ^"=>" ("[]"|"()"|word|Quoted) /ws
 Sequence      = psx:: PreSequence
 
 ec            = ~[\-\]\\]
@@ -38,11 +37,11 @@ e             =                (Quoted|word) ^":" e
               |                e ^"*/"  e                /ws        
               |                  ^"!"   e                /ws
               |                e ^"?"                    /ws
-              |                  ^"^" Quoted             /ws
-
-              |                   "(" word         ^")"  /ws
+              |                  ^"^"   Quoted
+              |     "(" word     ^")"                    /ws
               >                  ^"(" RHS  ")"           /ws
               |                  ^"~" e
+              >  "^^"::           "^"   e
 
 word       = [a-zA-Z0-9_]++
 Quoted     = "\"" ((~[\"\\] | escaped)+) "\""
@@ -53,6 +52,6 @@ escaped    = "\n":: "\\n"
 
 
 w             = " " | "\n" | "\r"
-ws            =  w** => ()
-              |  w** "//" ~[\n]* "\n" ws => ()
+ws            =  "()":: w**
+              |  "()":: w** "//" ~[\n]* "\n" ws
 wp            =  w++