diff --git a/classes/Language.html b/classes/Language.html index 8e41371..88d0582 100644 --- a/classes/Language.html +++ b/classes/Language.html @@ -47,9 +47,9 @@

Classes

  • Point
  • Query
  • Query.Capture
  • -
  • Query.CaptureSet
  • Query.Cursor
  • Query.Match
  • +
  • Query.QuantifiedCapture
  • Query.Runner
  • Range
  • Range.Array
  • @@ -236,7 +236,7 @@

    Returns:

    generated by LDoc 1.5.0 -Last updated 2023-10-24 14:38:56 +Last updated 2023-10-26 18:37:19
    diff --git a/classes/Node.html b/classes/Node.html index 954b318..8668ed5 100644 --- a/classes/Node.html +++ b/classes/Node.html @@ -46,9 +46,9 @@

    Classes

  • Point
  • Query
  • Query.Capture
  • -
  • Query.CaptureSet
  • Query.Cursor
  • Query.Match
  • +
  • Query.QuantifiedCapture
  • Query.Runner
  • Range
  • Range.Array
  • @@ -1026,7 +1026,7 @@

    Returns:

    generated by LDoc 1.5.0 -Last updated 2023-10-24 14:38:56 +Last updated 2023-10-26 18:37:19
    diff --git a/classes/Parser.html b/classes/Parser.html index 9ad2df3..ec2a6d1 100644 --- a/classes/Parser.html +++ b/classes/Parser.html @@ -46,9 +46,9 @@

    Classes

  • Point
  • Query
  • Query.Capture
  • -
  • Query.CaptureSet
  • Query.Cursor
  • Query.Match
  • +
  • Query.QuantifiedCapture
  • Query.Runner
  • Range
  • Range.Array
  • @@ -329,7 +329,7 @@

    Returns:

    generated by LDoc 1.5.0 -Last updated 2023-10-24 14:38:56 +Last updated 2023-10-26 18:37:19
    diff --git a/classes/Point.html b/classes/Point.html index b413a9f..fa4bc0e 100644 --- a/classes/Point.html +++ b/classes/Point.html @@ -47,9 +47,9 @@

    Classes

  • Point
  • Query
  • Query.Capture
  • -
  • Query.CaptureSet
  • Query.Cursor
  • Query.Match
  • +
  • Query.QuantifiedCapture
  • Query.Runner
  • Range
  • Range.Array
  • @@ -369,7 +369,7 @@

    Returns:

    generated by LDoc 1.5.0 -Last updated 2023-10-24 14:38:56 +Last updated 2023-10-26 18:37:19
    diff --git a/classes/Query.Capture.html b/classes/Query.Capture.html index 0d15819..b477fb8 100644 --- a/classes/Query.Capture.html +++ b/classes/Query.Capture.html @@ -45,9 +45,9 @@

    Classes

  • Point
  • Query
  • Query.Capture
  • -
  • Query.CaptureSet
  • Query.Cursor
  • Query.Match
  • +
  • Query.QuantifiedCapture
  • Query.Runner
  • Range
  • Range.Array
  • @@ -63,7 +63,7 @@

    Manuals

    Class Query.Capture

    -

    A capture of a Query.

    +

    A single capture of a Query.

    Analogous to TSQueryCapture.

    @@ -215,7 +215,7 @@

    Returns:

    generated by LDoc 1.5.0 -Last updated 2023-10-24 14:38:56 +Last updated 2023-10-26 18:37:19
    diff --git a/classes/Query.Cursor.html b/classes/Query.Cursor.html index 2bf04b7..b5ca7df 100644 --- a/classes/Query.Cursor.html +++ b/classes/Query.Cursor.html @@ -46,9 +46,9 @@

    Classes

  • Point
  • Query
  • Query.Capture
  • -
  • Query.CaptureSet
  • Query.Cursor
  • Query.Match
  • +
  • Query.QuantifiedCapture
  • Query.Runner
  • Range
  • Range.Array
  • @@ -391,7 +391,7 @@

    Returns:

    generated by LDoc 1.5.0 -Last updated 2023-10-24 14:38:56 +Last updated 2023-10-26 18:37:19
    diff --git a/classes/Query.Match.html b/classes/Query.Match.html index 6cad857..afb2163 100644 --- a/classes/Query.Match.html +++ b/classes/Query.Match.html @@ -45,9 +45,9 @@

    Classes

  • Point
  • Query
  • Query.Capture
  • -
  • Query.CaptureSet
  • Query.Cursor
  • Query.Match
  • +
  • Query.QuantifiedCapture
  • Query.Runner
  • Range
  • Range.Array
  • @@ -201,7 +201,7 @@

    Returns:

    generated by LDoc 1.5.0 -Last updated 2023-10-24 14:38:56 +Last updated 2023-10-26 18:37:19
    diff --git a/classes/Query.CaptureSet.html b/classes/Query.QuantifiedCapture.html similarity index 71% rename from classes/Query.CaptureSet.html rename to classes/Query.QuantifiedCapture.html index 58ebc84..4e8a649 100644 --- a/classes/Query.CaptureSet.html +++ b/classes/Query.QuantifiedCapture.html @@ -45,9 +45,9 @@

    Classes

  • Point
  • Query
  • Query.Capture
  • -
  • Query.CaptureSet
  • Query.Cursor
  • Query.Match
  • +
  • Query.QuantifiedCapture
  • Query.Runner
  • Range
  • Range.Array
  • @@ -62,8 +62,8 @@

    Manuals

    -

    Class Query.CaptureSet

    -

    A set of Query.Captures provided to predicates.

    +

    Class Query.QuantifiedCapture

    +

    A quantified set of Query.Captures provided to predicates.

    @@ -72,35 +72,35 @@

    Class Query.CaptureSet

    Methods

    - + - + - + - + - + - + - + - +
    CaptureSet:index ()QuantifiedCapture:index () Get the index of the captures.
    CaptureSet:match ()QuantifiedCapture:match () Get the QueryMatch the captures belongs to.
    CaptureSet:name ()QuantifiedCapture:name () Get the name of the captures.
    CaptureSet:quantifier ()QuantifiedCapture:quantifier () Get the quantifier of the captures.
    CaptureSet:one_capture ()QuantifiedCapture:one_capture () Get one capture.
    CaptureSet:one_node ()QuantifiedCapture:one_node () Get one node.
    CaptureSet:captures_to_table ()QuantifiedCapture:captures () Get all the captures in the set in a table.
    CaptureSet:nodes_to_table ()QuantifiedCapture:nodes () Get all the nodes in the set in a table.
    @@ -113,8 +113,8 @@

    Methods

    - - CaptureSet:index () + + QuantifiedCapture:index ()
    Get the index of the captures. @@ -135,8 +135,8 @@

    Returns:

    - - CaptureSet:match () + + QuantifiedCapture:match ()
    Get the QueryMatch the captures belongs to. @@ -157,8 +157,8 @@

    Returns:

    - - CaptureSet:name () + + QuantifiedCapture:name ()
    Get the name of the captures. @@ -179,8 +179,8 @@

    Returns:

    - - CaptureSet:quantifier () + + QuantifiedCapture:quantifier ()
    @@ -213,15 +213,15 @@

    Returns:

    - - CaptureSet:one_capture () + + QuantifiedCapture:one_capture ()
    Get one capture.

    This is useful when there are only 0 or 1 captures in the set.

    -

    If you only need the node, which is the usual use-case, use one_node +

    If you only need the node, which is the usual use-case, use one_node instead. @@ -240,8 +240,8 @@

    Returns:

    - - CaptureSet:one_node () + + QuantifiedCapture:one_node ()
    Get one node.

    @@ -264,14 +264,14 @@

    Returns:

    - - CaptureSet:captures_to_table () + + QuantifiedCapture:captures ()
    Get all the captures in the set in a table.

    If you only need the nodes, which is the usual use-case, use - nodes_to_table instead. + nodes instead. @@ -289,8 +289,8 @@

    Returns:

    - - CaptureSet:nodes_to_table () + + QuantifiedCapture:nodes ()
    Get all the nodes in the set in a table. @@ -317,7 +317,7 @@

    Returns:

    generated by LDoc 1.5.0 -Last updated 2023-10-24 14:38:56 +Last updated 2023-10-26 18:37:19
    diff --git a/classes/Query.Runner.html b/classes/Query.Runner.html index 3cb9976..cd2d761 100644 --- a/classes/Query.Runner.html +++ b/classes/Query.Runner.html @@ -46,9 +46,9 @@

    Classes

  • Point
  • Query
  • Query.Capture
  • -
  • Query.CaptureSet
  • Query.Cursor
  • Query.Match
  • +
  • Query.QuantifiedCapture
  • Query.Runner
  • Range
  • Range.Array
  • @@ -80,11 +80,11 @@

    Functions

    Methods

    - + - +
    Runner:matches (cursor)Runner:iter_matches (cursor) Iterate over the Matches of a cursor, executing predicates.
    Runner:captures (cursor)Runner:iter_captures (cursor) Uterate over the Captures of a cursor, executing predicates.
    @@ -104,7 +104,7 @@

    Functions

    Create a new runner with a given set of predicates.

    Predicates are functions that take a variable number of parameters of type - CaptureSet or string.

    + QuantifiedCapture or string.

    Currently, predicates' return values are ignored and discarded, unless the name of the predicate ends with '?'. In this case, falsey values @@ -153,8 +153,8 @@

    Methods

    - - Runner:matches (cursor) + + Runner:iter_matches (cursor)
    Iterate over the Matches of a cursor, executing predicates. @@ -182,8 +182,8 @@

    Returns:

    - - Runner:captures (cursor) + + Runner:iter_captures (cursor)
    Uterate over the Captures of a cursor, executing predicates. @@ -217,7 +217,7 @@

    Returns:

    generated by LDoc 1.5.0 -Last updated 2023-10-24 14:38:56 +Last updated 2023-10-26 18:37:19
    diff --git a/classes/Query.html b/classes/Query.html index ba2d72b..4cf1ea3 100644 --- a/classes/Query.html +++ b/classes/Query.html @@ -45,9 +45,9 @@

    Classes

  • Point
  • Query
  • Query.Capture
  • -
  • Query.CaptureSet
  • Query.Cursor
  • Query.Match
  • +
  • Query.QuantifiedCapture
  • Query.Runner
  • Range
  • Range.Array
  • @@ -128,7 +128,7 @@

    Raises:

    generated by LDoc 1.5.0 -Last updated 2023-10-24 14:38:56 +Last updated 2023-10-26 18:37:19
    diff --git a/classes/Range.Array.html b/classes/Range.Array.html index e636c3c..289dab0 100644 --- a/classes/Range.Array.html +++ b/classes/Range.Array.html @@ -47,9 +47,9 @@

    Classes

  • Point
  • Query
  • Query.Capture
  • -
  • Query.CaptureSet
  • Query.Cursor
  • Query.Match
  • +
  • Query.QuantifiedCapture
  • Query.Runner
  • Range
  • Range.Array
  • @@ -441,7 +441,7 @@

    Returns:

    generated by LDoc 1.5.0 -Last updated 2023-10-24 14:38:56 +Last updated 2023-10-26 18:37:19
    diff --git a/classes/Range.html b/classes/Range.html index be2d2cf..a5d78b2 100644 --- a/classes/Range.html +++ b/classes/Range.html @@ -47,9 +47,9 @@

    Classes

  • Point
  • Query
  • Query.Capture
  • -
  • Query.CaptureSet
  • Query.Cursor
  • Query.Match
  • +
  • Query.QuantifiedCapture
  • Query.Runner
  • Range
  • Range.Array
  • @@ -381,7 +381,7 @@

    Returns:

    generated by LDoc 1.5.0 -Last updated 2023-10-24 14:38:56 +Last updated 2023-10-26 18:37:19
    diff --git a/classes/Tree.html b/classes/Tree.html index c404686..100ad6a 100644 --- a/classes/Tree.html +++ b/classes/Tree.html @@ -46,9 +46,9 @@

    Classes

  • Point
  • Query
  • Query.Capture
  • -
  • Query.CaptureSet
  • Query.Cursor
  • Query.Match
  • +
  • Query.QuantifiedCapture
  • Query.Runner
  • Range
  • Range.Array
  • @@ -351,7 +351,7 @@

    See also:

    generated by LDoc 1.5.0 -Last updated 2023-10-24 14:38:56 +Last updated 2023-10-26 18:37:19
    diff --git a/index.html b/index.html index b4efb1b..de1e668 100644 --- a/index.html +++ b/index.html @@ -38,9 +38,9 @@

    Classes

  • Point
  • Query
  • Query.Capture
  • -
  • Query.CaptureSet
  • Query.Cursor
  • Query.Match
  • +
  • Query.QuantifiedCapture
  • Query.Runner
  • Range
  • Range.Array
  • @@ -82,11 +82,7 @@

    Classes

    Query.Capture - A capture of a Query. - - - Query.CaptureSet - A set of Query.Captures provided to predicates. + A single capture of a Query. Query.Cursor @@ -96,6 +92,10 @@

    Classes

    Query.Match A match of a Query. + + Query.QuantifiedCapture + A quantified set of Query.Captures provided to predicates. + Query.Runner Runs Querys with support for predicates. @@ -125,7 +125,7 @@

    Manuals

    generated by LDoc 1.5.0 -Last updated 2023-10-24 14:38:56 +Last updated 2023-10-26 18:37:19
    diff --git a/manuals/README.md.html b/manuals/README.md.html index f4b6a4a..41c3ac7 100644 --- a/manuals/README.md.html +++ b/manuals/README.md.html @@ -51,9 +51,9 @@

    Classes

  • Point
  • Query
  • Query.Capture
  • -
  • Query.CaptureSet
  • Query.Cursor
  • Query.Match
  • +
  • Query.QuantifiedCapture
  • Query.Runner
  • Range
  • Range.Array
  • @@ -95,7 +95,7 @@

    License

    generated by LDoc 1.5.0 -Last updated 2023-10-24 14:38:56 +Last updated 2023-10-26 18:37:19