let type_of_primitive tenv = function | PIntegerConstant _ -> symbol tenv (TName "int") | PUnit -> symbol tenv (TName "unit") | PCharConstant _ -> symbol tenv (TName "char")