亚洲一区二区三区成人网站-一本久久知道综合久久-丰满少妇在线观看网站-日本一区二区三区高清无卡-精品午夜国产福利观看

The CommonMark\CQL class

(cmark >= 1.1.0)

簡(jiǎn)介

CommonMark Query Language is a DSL for describing how to travel through a CommonMark Node tree implemented as a parser and compiler for a small set of instructions, and a virtual machine for executing those instructions.

Paths:

In it's most simplistic form, a CQL query combines the following paths and / to describe how to travel through a tree:

  • firstChild
  • lastChild
  • previous
  • next
  • parent
For example, /firstChild/lastChild would travel to the last child node of the first child node.

Loops

CQL can be instructed to loop, for example through the children of, or siblings to a particular node, by using the path children, or siblings. For example, /firstChild/children will travel to all the children of the first child node.

Subqueries

CQL can be instructed how to travel by using a subquery like [/firstChild]. For example, /firstChild/children[/firstChild] will travel to the first child node of all the children of the first child node.

Loop Constraints

While looping, CQL can be instructed to constrict the travelled path to nodes of particular type. For example /children(BlockQuote) will travel to the children of a node where the type is BlockQuote. The following types are recognized (case insensitively):

  • BlockQuote
  • List
  • Item
  • CodeBlock
  • HtmlBlock
  • CustomBlock
  • Paragraph
  • Heading
  • ThematicBreak
  • Text
  • SoftBreak
  • LineBreak
  • Code
  • HtmlInline
  • CustomInline
  • Emphasis
  • Strong
  • Link
  • Image
Types may be used as a union, for example /children(BlockQuote|List) will travel to the children of a node where the type is BlockQuote or List. Types, or unions of types, may be also negated. For example /children(~BlockQuote) will travel to the children of a node where the type is not BlockQuote, and /children(~BlockQuote|Paragraph) will travel to the children of a node where the type is not BlockQuote or Paragraph

Path Constraints

CQL can be instructed to create a loop to travel to a node of a particular type, at a particular path. For example, /firstChild(BlockQuote) will travel to the first child node where the type is BlockQuote. Note that like other loops for children and siblings, this kind of path can only be followed by a subquery.

Implementation Notes

While CQL has been implemented as part of the PHP CommonMark extension, it stands separately from PHP and does not use PHP's virtual machine or internal representation of values.

類摘要

class CommonMark\CQL {
/* Constructor */
public __construct(string $query)
/* 方法 */
public __invoke(CommonMark\Node $root, callable $handler)
}

目錄

主站蜘蛛池模板: 爽爽午夜影视窝窝看片| 亚洲综合av一区二区三区| 伊人丁香狠狠色综合久久| 亚洲国产精品日韩av专区| 天堂无码人妻精品一区二区三区| 日本丰满的人妻hd高清在线 | 欧美特大特白屁股ass| 国产免费啪嗒啪嗒视频看看| 国产成人av亚洲一区二区| 中文字幕精品亚洲一区| 亚洲成av人片天堂网无码】| 久久亚洲国产成人影院| 成年奭片免费观看视频天天看| 国产午夜福利不卡在线观看| 欲色天天网综合久久| 狠狠综合久久综合88亚洲爱文| 国产成人亚洲精品| av国产传媒精品免费| www无套内射高清免费| 国产人妻人伦精品欧美| 亚洲精品美女久久久久99| 中文字幕乱码无码人妻系列蜜桃| 国产xxx69麻豆国语对白| 国产v亚洲v天堂无码| 精品熟人妻一区二区三区四区不卡 | 午夜爽爽爽男女污污污网站| 日韩插啊免费视频在线观看| 无码中出人妻中文字幕av| 精品无码久久久久国产电影| 99久久国语露脸精品国产色| 乱人妻人伦中文字幕| 成人无码区免费视频网站| 强壮的公次次弄得我高潮A片日本| 99久久99久久久精品齐齐综合色圆| 亚洲精品久久久久久动漫| 在线人成免费视频69国产| 国产乱色国产精品免费视频| 欧美99久久无码一区人妻a片| 在线日产精品一区| 久久精品国产久精国产思思| 香蕉久久福利院|