generates AST for a variable (or array) and changes value of index to the token after variable ends
See Implementation
generates AST for a variable (or array) and changes value of index to the token after variable ends