fix token eat + implement scalar & array parser