Changeset 21763 for src/Pugs/Parser.hs
- Timestamp:
- 08/04/08 10:39:26 (4 months ago)
- Files:
-
- 1 modified
-
src/Pugs/Parser.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Parser.hs
r21673 r21763 984 984 _ -> fail "no caller env to install pragma in" 985 985 986 {-| Match a @q :code{ ... }@ quotation -}986 {-| Match a @quasi { ... }@ quotation -} 987 987 ruleCodeQuotation :: RuleParser Exp 988 988 ruleCodeQuotation = rule "code quotation" $ do 989 989 -- 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") 991 991 block <- ruleBlockBody 992 return (Syn "q :code" [bi_body block])992 return (Syn "quasi" [bi_body block]) 993 993 994 994 -- | If we've executed code like @BEGIN { exit }@, we've to run all @\@*END@
