通过把正则表达式规则的子模式(匹配组)分配给特性,可以设置注解的特性值。
You can set the feature values of an annotation by assigning a sub-pattern of the regular expression rule-a match group-to the feature.
该模式是一个正则表达式,它表示可接受的store ID的值应该以ID开头,后面紧跟着六位数字。
This pattern is a regular expression that means the acceptable value of store ID should begin with ID followed by six digits.
yacc可以识别出记号的模式;例如,如上面例子中所示,它可以识别出一个表达式可能由一个值、一个加号或者减号以及另一个值构成。
Yacc can recognize patterns of tokens; for instance, as in the example above, it can recognize that an expression can consist of a value, either a plus or minus sign, and another value.
应用推荐