A Peek into Pugs Internals #42

Parsing literals

rule term
    { undef            : { return Val(VUndef)          }
    | $<digits>:=(\d+) : { return Val(VInt($<digits>)) }
    }
Copyright © 2006 Gaal Yahas