Parse general values (i.e. register or constant)

as described in #35 and f0c8faa2d.