首页 > 解决方案 > 如何正确阅读 Shell 语法?

问题描述

如何正确准确地阅读位于https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_10_02的 Shell Grammar ,尤其是写在“ The grammar symbols ”之后的?我并不是说我根本无法理解,我大致理解它,但我认为应该有一个关于如何正确读写 Shell Grammar 的“标准标准”。

标签: bashshellunixposix

解决方案


感谢Shawn,事实证明 Shell Grammar 使用了https://pubs.opengroup.org/onlinepubs/9699919799/utilities/yacc.html#tag_20_159_13中描述的“yacc 样式BNF语法” (或更容易在这里阅读版本)。


推荐阅读