A command parser for building logical querying of array contents