Because of the limitation of grammar method and logic category, language itself has to construct a more flexible mechanism.
为了弥补语法手段与逻辑范畴的局限性,语言自身不得不建构一套更加富有弹性的机制。
Simply, for example, to improve the method of accepting input, you might write a grammar rule for the month so you can speak the month (see Listing 6).
简单的说,例如要改进接收输入的方法,我们可以编写一个月语法规则,这样应用程序就可以直接识别月(如清单6所示)。
Each p: : RD grammar becomes an object blessed into the p: : RD class, with each rule in the grammar as a method you can use to cause actions to happen.
每个P: RD语法成为P: rd类中的一个对象,语法中的每一个规则都可以作为用来执行动作的方法。
应用推荐