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

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

目錄

主站蜘蛛池模板: 97久久久亚洲综合久久88| 久久久久夜夜夜精品国产| 成人免费无码视频在线网站| 日韩不卡手机视频在线观看| 中文字幕av中文字无码亚| 在线观看老湿视频福利| 国产精品毛片久久久久久久| 久久久久无码精品国产| 人妻少妇av无码一区二区| 精品久久久久中文字幕一区| 老外和中国女人毛片免费视频| 精品免费国产一区二区三区四区| 国产69精品久久久久久久| 国产三级做爰在线播放| 未满十八18禁止午夜免费网站| 久久久无码精品国产一区| 国产小受呻吟gv视频在线观看| 国产精品爽爽久久久久久无码| 白嫩无码人妻丰满熟妇啪啪区百度| 久久精品一品道久久精品| 免费国产va在线观看视频| 色偷偷av老熟女| 日本丰满人妻xxxxxhd| 久久99精品久久久久久hb| 亚洲色欲色欲www在线丝| 少妇裸交aa大片| 国产精品三级一区二区| 国产日韩精品欧美一区喷水| 亚洲欧洲日产国码久在线| 国产乱理伦片在线观看| 国产欧美一区二区三区在线看| 热re99久久精品国99热| 情侣黄网站免费看| 日韩 无码 偷拍 中文字幕| 欧美精品国产aⅴ一区二区在线| 激情综合丁香五月| h番动漫福利在线观看| 日本无卡无吗二区三区入口| 国产精品视频第一区二区三区| 亚洲国产成人精品青青草原| 亚洲国产av无码综合原创国产 |