A Peek into Pugs Internals #45

Parsing terms

rule term
    { undef            : { return VUndef    }
    | (\d+)            : { return VInt($0)  }
    }

rule expr
    { <term>           : { return Val($term) }
    |
Copyright © 2006 Gaal Yahas