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

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)
}

目錄

主站蜘蛛池模板: 精品香蕉在线观看视频| 国产乱子伦视频在线观看 | 玩弄放荡人妻少妇系列| 亚洲精品乱码久久久久久| 5858s亚洲色大成网站www| 粗大的内捧猛烈进出视频| 女人被男人躁得好爽免费视频 | 影音先锋人妻av中文字幕久久 | 亚洲国产精品成人久久久| 狠狠五月深爱婷婷| 熟妇视频| 国产亚洲精品一区二区在线观看| 综合无码一区二区三区四区五区 | 蜜臀av一区二区| 国产97色在线 | 日韩| 久久99国产精品久久99| 男女裸交免费无遮挡全过程| 亚洲婷婷五月综合狠狠爱| 99热这里只有精品免费播放 | 精品无码久久久久久久久久 | 久久96国产精品久久久| 日本一卡2卡3卡四卡精品网站| 亚洲欧洲日产国码无码av一| 亚洲精品一区二区三区在线观看 | 亚洲一区二区三区无码中文字幕| 色婷婷五月综合亚洲小说| 久久国产福利播放| 潮喷大喷水系列无码| 丰满人妻熟妇乱又伦精品| 欧美牲交a欧美牲交| 噜噜噜亚洲色成人网站| 真实的国产乱xxxx| 欧美日韩在线第一页免费观看| 99久久99久久精品免费看蜜桃| 内射少妇36p亚洲区| 天堂www中文在线资源| 国产人成视频在线观看| 日本真人做爰免费的视频| 欧美亚洲国产第一精品久久 | 一本之道高清无码视频| 日韩成人无码一区二区三区|