Is there an existing POSIX sh grammar available or do I have to figure it out from the specification directly?
Note I\'m not so much interested in a pure sh
I'd expect that sh, csh, ash, bash, would contain parsers. GNU versions of these are open source; you might just go check there.