implement array functionality in lexer and parser