grammar: make parseStates a dynamic array instead of associative

Signed-off-by: Peter Williams <pwil3058@gmail.com>