POSIX sh EBNF grammar

后端 未结 4 991
北荒
北荒 2020-12-30 08:29

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

4条回答
  •  情话喂你
    2020-12-30 08:59

    I have done some more digging and found these resources:

    1. An sh tutorial located here

    2. A Bash book containing Bash 2.0's BNF grammar (gone from here) with the relevant appendix still here

    I have looked through the sources of bash, pdksh, and posh but haven't found anything remotely at the level of abstraction I need.

提交回复
热议问题