Changeset 21763 for src/Pugs/Parser.hs

Show
Ignore:
Timestamp:
08/04/08 10:39:26 (4 months ago)
Author:
lwall
Message:

s/q:code/quasi/ plus various t/ buglets

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Parser.hs

    r21673 r21763  
    984984            _ -> fail "no caller env to install pragma in" 
    985985 
    986 {-| Match a @q:code { ... }@ quotation -} 
     986{-| Match a @quasi { ... }@ quotation -} 
    987987ruleCodeQuotation :: RuleParser Exp 
    988988ruleCodeQuotation = rule "code quotation" $ do 
    989989    -- XXX - This is entirely kluge; it drops traits in the body too 
    990     symbol "q:code" >> optional (symbol "(:COMPILING)") 
     990    symbol "quasi" >> optional (symbol ":COMPILING") 
    991991    block <- ruleBlockBody 
    992     return (Syn "q:code" [bi_body block]) 
     992    return (Syn "quasi" [bi_body block]) 
    993993     
    994994-- | If we've executed code like @BEGIN { exit }@, we've to run all @\@*END@