[Parser] Added function and for-loop variables to the variable tree