"railroad diagram"

本文通过铁路图比喻解析了一种特殊的语法结构。进入图表从左侧开始,在第一个开关处没有选择左右的选项,类似于铁路开关只能沿固定轨道前进。右侧的开关允许从左而来的流量选择不同的路径,从而结束或重复语法规则。此图定义了空白字符可以由任意数量的空格、制表符、行尾或注释组成。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

The railroad diagram from the book


1 down vote accepted

As a "railroad diagram", this has some properties in common with a railroad track.

Upon entering the diagram from the left, when arriving at the first switch, there is no option of going left or right. Just like a railroad switch, the diagram switch has two converging tracks, but no way to pass from one of those to the other.

The switch on the right hand side however, with traffic arriving from the left, provides the options of following either of the diverging routes, effectively ending or repeating the syntax rule.

Thus the diagram defines instances of whitespace to be composed of any positive number of spaces, tabs, line ends, or comments.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值