Adds enums for possible error/lval types
Adds lval_{num,err} functions