[英]why precedence over disjunction
I have a question about operator precedence hierarchy, why "Because sequences have a higher precedence than disjunction, /the|any/ matches the or any but not thany or they"?我有一个关于运算符优先级层次结构的问题,为什么“因为序列的优先级高于析取,/the|any/ 匹配 the or any 但不匹配 or they”? I just couldn't understand why this result reflects "precedence over disjunction"?
我只是不明白为什么这个结果反映了“优先于析取”?
If the disjunction operator had a higher precedence than grouping together each sequence of characters, than it could operate on the individual characters or subgroups.如果析取运算符的优先级高于将每个字符序列组合在一起,则它可以对单个字符或子组进行操作。 It could be interpreted as something like /the(e|an)y/
它可以解释为 /the(e|an)y/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.