POSIX sh EBNF语法 [英] POSIX sh EBNF grammar
问题描述
是否存在现有的POSIX sh语法,或者我必须直接从规范中找出答案?
Is there an existing POSIX sh grammar available or do I have to figure it out from the specification directly?
请注意,我对 pure sh不太感兴趣;就我的目的而言,扩展但顺应性的sh也是很好的.
Note I'm not so much interested in a pure sh; an extended but conformant sh is also more than fine for my purposes.
推荐答案
我做了更多的挖掘工作,并发现了以下资源:
I have done some more digging and found these resources:
-
位于包含Bash 2.0的BNF语法的Bash书籍(摘自此处)和相关附录
A Bash book containing Bash 2.0's BNF grammar (gone from here) with the relevant appendix still here
我已经浏览了
bash
,pdksh
和posh
的来源,但是在我需要的抽象级别上并没有发现任何远程信息.I have looked through the sources of
bash
,pdksh
, andposh
but haven't found anything remotely at the level of abstraction I need.这篇关于POSIX sh EBNF语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!