Describe the solution you'd like
The current implementation of var_statement function which is responsible for parsing variable and array declaration with or without assignment is too long and can be broken into further parts - variable, pointers, arrays.