Basic parsing of integer and variable reference literals

Depends on #141 

Implements basic parsing for integer and variable reference literals
Why does this receive a class object as an argument?