POSIX sh EBNF语法 [英] POSIX sh EBNF grammar

查看:97
本文介绍了POSIX sh EBNF语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否存在现有的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:

  1. 位于包含Bash 2.0的BNF语法的Bash书籍(摘自此处)和相关附录

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

    我已经浏览了bashpdkshposh的来源,但是在我需要的抽象级别上并没有发现任何远程信息.

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

    这篇关于POSIX sh EBNF语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆