Download the community edition sources, and you'll find these Flex and Bison input files:
That's the full grammar. If you need to just parse array schemas, there is a usually-good-enough Python parser in
The soon-to-be-published 16.9 version of this module has many improvements over prior versions.
Hope this helps!