A Peek into Pugs Internals #25

Parsing for

ruleForConstruct = rule "for construct" $ do
    symbol "for"
    list  <- maybeParens ruleExpression
    optional ruleComma
    block <- ruleBlockLiteral
    retSyn "for" [list, block]
continued...
Copyright © 2006 Gaal Yahas