Finished Grammar

Grammar is done, all that needs to be done is to implement the functions
that it calls within the relation class