Basic parsing of integer and variable reference literals

Depends on #141 

Implements basic parsing for integer and variable reference literals