A Peek into Pugs Internals #27

Parsing with parsec - what goes down

ruleHashSubscriptBraces = do
    between (symbol "{") (char '}') $ option id $ do
        exp <- ruleExpression; return $ \x -> Syn "{}" [x, exp]
Copyright © 2006 Gaal Yahas