...x; } 2) 在后代选择器中,规则左边的选择器一端包括两个或多个用空格分隔的选择器。选择器之间的空格是一种结合符(combinator)。每个空格结合符可以解释为“.
基于6个网页-相关网页
Parser Combinator 解析器组合子
Y Combinator 美国着名创业孵化器 ; 创业加速器 ; 硅谷顶级创业孵化器
optical image combinator 光学合像仪
Child Combinator 大于号 ; 子选择符
descendant combinator 后代选择器
Adjacent sibling combinator 即相邻兄弟结合符 ; 相邻选择符
General sibling combinator 选择符 ; 普通兄弟选择器 ; 一般兄弟选择器
To understand how this all works, we have to take a brief dive into the parser combinator implementation.
为了理解其中的原理,我们必须简要了解解析器组合子的实现。
The other newly supported combinator will be the Adjacent Sibling combinator, designated by a "+" symbol similarly placed between simple selectors.
另外一个新支持的选择符将是相邻选择符,使用"+"符号。
In the original parser, expressions like "5 + 5 + 5" were acceptable owing to the rep combinator in the grammar definition for expressions (expr) and terms (term).
在原来的解析器中,可以接受像“5 + 5 + 5”这样的表达式,因为语法中为表达式(expr)和术语(term)定义了rep组合子。
应用推荐