checkpoint
[sbp.git] / tests / meta.g
index a540d78..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)+) "\""