let getVecDeclaration (Ide(id): ide) (x: int) (y: int) (table: dec_table) =
try (
let elList = Hashtbl.find_all table (Ide(id)) in
if (y = -1) then
List.nth elList x
else (
let (_, dim, _) = List.nth elList 0 in
List.nth elList ((x*dim) + y)
)
) with Not_found -> raise (NON_DECLARED_VARIABLE ("ERROR: Undeclared variable: "^ id ^ "\n"))