Skip to content

Commit

Permalink
Allow step of array slice to be omitted
Browse files Browse the repository at this point in the history
This allows slices of the form [0:10:].
  • Loading branch information
glyn committed Oct 7, 2020
1 parent bf2098d commit 302f3a8
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 100 deletions.
70 changes: 35 additions & 35 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1152,11 +1152,11 @@
<thead><tr>
<td class="left">Internet-Draft</td>
<td class="center">JavaScript Object Notation (JSON) Path</td>
<td class="right">September 2020</td>
<td class="right">October 2020</td>
</tr></thead>
<tfoot><tr>
<td class="left">Normington &amp; Surov</td>
<td class="center">Expires 28 March 2021</td>
<td class="center">Expires 10 April 2021</td>
<td class="right">[Page]</td>
</tr></tfoot>
</table>
Expand All @@ -1169,12 +1169,12 @@
<dd class="internet-draft">draft-normington-jsonpath-00</dd>
<dt class="label-published">Published:</dt>
<dd class="published">
<time datetime="2020-09-24" class="published">24 September 2020</time>
<time datetime="2020-10-07" class="published">7 October 2020</time>
</dd>
<dt class="label-intended-status">Intended Status:</dt>
<dd class="intended-status">Standards Track</dd>
<dt class="label-expires">Expires:</dt>
<dd class="expires"><time datetime="2021-03-28">28 March 2021</time></dd>
<dd class="expires"><time datetime="2021-04-10">10 April 2021</time></dd>
<dt class="label-authors">Authors:</dt>
<dd class="authors">
<div class="author">
Expand Down Expand Up @@ -1218,7 +1218,7 @@ <h2 id="name-status-of-this-memo-2">
time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress."<a href="#section-boilerplate.1-3" class="pilcrow"></a></p>
<p id="section-boilerplate.1-4">
This Internet-Draft will expire on 28 March 2021.<a href="#section-boilerplate.1-4" class="pilcrow"></a></p>
This Internet-Draft will expire on 10 April 2021.<a href="#section-boilerplate.1-4" class="pilcrow"></a></p>
</section>
</div>
<div id="copyright">
Expand Down Expand Up @@ -1246,55 +1246,55 @@ <h2 id="name-copyright-notice-2">
<a href="#" onclick="scroll(0,0)" class="toplink"></a><h2 id="name-table-of-contents-2">
<a href="#name-table-of-contents-2" class="section-name selfRef">Table of Contents</a>
</h2>
<nav class="toc"><ul class="compact toc ulEmpty">
<li class="compact toc ulEmpty" id="section-toc.1-1.1">
<nav class="toc"><ul class="compact ulEmpty toc">
<li class="compact ulEmpty toc" id="section-toc.1-1.1">
<p id="section-toc.1-1.1.1" class="keepWithNext"><a href="#section-1" class="xref">1</a>.  <a href="#name-introduction-2" class="xref">Introduction</a><a href="#section-toc.1-1.1.1" class="pilcrow"></a></p>
<ul class="compact toc ulEmpty">
<li class="compact toc ulEmpty" id="section-toc.1-1.1.2.1">
<ul class="compact ulEmpty toc">
<li class="compact ulEmpty toc" id="section-toc.1-1.1.2.1">
<p id="section-toc.1-1.1.2.1.1" class="keepWithNext"><a href="#section-1.1" class="xref">1.1</a>.  <a href="#name-requirements-language-2" class="xref">Requirements Language</a><a href="#section-toc.1-1.1.2.1.1" class="pilcrow"></a></p>
</li>
<li class="compact toc ulEmpty" id="section-toc.1-1.1.2.2">
<li class="compact ulEmpty toc" id="section-toc.1-1.1.2.2">
<p id="section-toc.1-1.1.2.2.1" class="keepWithNext"><a href="#section-1.2" class="xref">1.2</a>.  <a href="#name-abnf-syntax-2" class="xref">ABNF Syntax</a><a href="#section-toc.1-1.1.2.2.1" class="pilcrow"></a></p>
</li>
</ul>
</li>
<li class="compact toc ulEmpty" id="section-toc.1-1.2">
<li class="compact ulEmpty toc" id="section-toc.1-1.2">
<p id="section-toc.1-1.2.1"><a href="#section-2" class="xref">2</a>.  <a href="#name-json-path-syntax-and-semanti" class="xref">JSON Path Syntax and Semantics</a><a href="#section-toc.1-1.2.1" class="pilcrow"></a></p>
<ul class="compact toc ulEmpty">
<li class="compact toc ulEmpty" id="section-toc.1-1.2.2.1">
<ul class="compact ulEmpty toc">
<li class="compact ulEmpty toc" id="section-toc.1-1.2.2.1">
<p id="section-toc.1-1.2.2.1.1"><a href="#section-2.1" class="xref">2.1</a>.  <a href="#name-overview-2" class="xref">Overview</a><a href="#section-toc.1-1.2.2.1.1" class="pilcrow"></a></p>
</li>
<li class="compact toc ulEmpty" id="section-toc.1-1.2.2.2">
<li class="compact ulEmpty toc" id="section-toc.1-1.2.2.2">
<p id="section-toc.1-1.2.2.2.1"><a href="#section-2.2" class="xref">2.2</a>.  <a href="#name-terminology-2" class="xref">Terminology</a><a href="#section-toc.1-1.2.2.2.1" class="pilcrow"></a></p>
</li>
<li class="compact toc ulEmpty" id="section-toc.1-1.2.2.3">
<li class="compact ulEmpty toc" id="section-toc.1-1.2.2.3">
<p id="section-toc.1-1.2.2.3.1"><a href="#section-2.3" class="xref">2.3</a>.  <a href="#name-implementation-2" class="xref">Implementation</a><a href="#section-toc.1-1.2.2.3.1" class="pilcrow"></a></p>
</li>
<li class="compact toc ulEmpty" id="section-toc.1-1.2.2.4">
<li class="compact ulEmpty toc" id="section-toc.1-1.2.2.4">
<p id="section-toc.1-1.2.2.4.1"><a href="#section-2.4" class="xref">2.4</a>.  <a href="#name-syntax-6" class="xref">Syntax</a><a href="#section-toc.1-1.2.2.4.1" class="pilcrow"></a></p>
</li>
<li class="compact toc ulEmpty" id="section-toc.1-1.2.2.5">
<li class="compact ulEmpty toc" id="section-toc.1-1.2.2.5">
<p id="section-toc.1-1.2.2.5.1"><a href="#section-2.5" class="xref">2.5</a>.  <a href="#name-semantics-6" class="xref">Semantics</a><a href="#section-toc.1-1.2.2.5.1" class="pilcrow"></a></p>
</li>
<li class="compact toc ulEmpty" id="section-toc.1-1.2.2.6">
<li class="compact ulEmpty toc" id="section-toc.1-1.2.2.6">
<p id="section-toc.1-1.2.2.6.1"><a href="#section-2.6" class="xref">2.6</a>.  <a href="#name-selectors-2" class="xref">Selectors</a><a href="#section-toc.1-1.2.2.6.1" class="pilcrow"></a></p>
<ul class="compact toc ulEmpty">
<li class="compact toc ulEmpty" id="section-toc.1-1.2.2.6.2.1">
<ul class="compact ulEmpty toc">
<li class="compact ulEmpty toc" id="section-toc.1-1.2.2.6.2.1">
<p id="section-toc.1-1.2.2.6.2.1.1"><a href="#section-2.6.1" class="xref">2.6.1</a>.  <a href="#name-dot-child-selector-2" class="xref">Dot Child Selector</a><a href="#section-toc.1-1.2.2.6.2.1.1" class="pilcrow"></a></p>
</li>
<li class="compact toc ulEmpty" id="section-toc.1-1.2.2.6.2.2">
<li class="compact ulEmpty toc" id="section-toc.1-1.2.2.6.2.2">
<p id="section-toc.1-1.2.2.6.2.2.1"><a href="#section-2.6.2" class="xref">2.6.2</a>.  <a href="#name-union-selector-2" class="xref">Union Selector</a><a href="#section-toc.1-1.2.2.6.2.2.1" class="pilcrow"></a></p>
<ul class="compact toc ulEmpty">
<li class="compact toc ulEmpty" id="section-toc.1-1.2.2.6.2.2.2.1">
<ul class="compact ulEmpty toc">
<li class="compact ulEmpty toc" id="section-toc.1-1.2.2.6.2.2.2.1">
<p id="section-toc.1-1.2.2.6.2.2.2.1.1"><a href="#section-2.6.2.1" class="xref">2.6.2.1</a>.  <a href="#name-syntax-8" class="xref">Syntax</a><a href="#section-toc.1-1.2.2.6.2.2.2.1.1" class="pilcrow"></a></p>
</li>
<li class="compact toc ulEmpty" id="section-toc.1-1.2.2.6.2.2.2.2">
<li class="compact ulEmpty toc" id="section-toc.1-1.2.2.6.2.2.2.2">
<p id="section-toc.1-1.2.2.6.2.2.2.2.1"><a href="#section-2.6.2.2" class="xref">2.6.2.2</a>.  <a href="#name-semantics-8" class="xref">Semantics</a><a href="#section-toc.1-1.2.2.6.2.2.2.2.1" class="pilcrow"></a></p>
</li>
<li class="compact toc ulEmpty" id="section-toc.1-1.2.2.6.2.2.2.3">
<li class="compact ulEmpty toc" id="section-toc.1-1.2.2.6.2.2.2.3">
<p id="section-toc.1-1.2.2.6.2.2.2.3.1"><a href="#section-2.6.2.3" class="xref">2.6.2.3</a>.  <a href="#name-union-child-2" class="xref">Union Child</a><a href="#section-toc.1-1.2.2.6.2.2.2.3.1" class="pilcrow"></a></p>
</li>
<li class="compact toc ulEmpty" id="section-toc.1-1.2.2.6.2.2.2.4">
<li class="compact ulEmpty toc" id="section-toc.1-1.2.2.6.2.2.2.4">
<p id="section-toc.1-1.2.2.6.2.2.2.4.1"><a href="#section-2.6.2.4" class="xref">2.6.2.4</a>.  <a href="#name-array-access-2" class="xref">Array Access</a><a href="#section-toc.1-1.2.2.6.2.2.2.4.1" class="pilcrow"></a></p>
</li>
</ul>
Expand All @@ -1303,27 +1303,27 @@ <h2 id="name-copyright-notice-2">
</li>
</ul>
</li>
<li class="compact toc ulEmpty" id="section-toc.1-1.3">
<li class="compact ulEmpty toc" id="section-toc.1-1.3">
<p id="section-toc.1-1.3.1"><a href="#section-3" class="xref">3</a>.  <a href="#name-iana-considerations-2" class="xref">IANA Considerations</a><a href="#section-toc.1-1.3.1" class="pilcrow"></a></p>
</li>
<li class="compact toc ulEmpty" id="section-toc.1-1.4">
<li class="compact ulEmpty toc" id="section-toc.1-1.4">
<p id="section-toc.1-1.4.1"><a href="#section-4" class="xref">4</a>.  <a href="#name-security-considerations-2" class="xref">Security Considerations</a><a href="#section-toc.1-1.4.1" class="pilcrow"></a></p>
</li>
<li class="compact toc ulEmpty" id="section-toc.1-1.5">
<li class="compact ulEmpty toc" id="section-toc.1-1.5">
<p id="section-toc.1-1.5.1"><a href="#section-5" class="xref">5</a>.  <a href="#name-alternatives-2" class="xref">Alternatives</a><a href="#section-toc.1-1.5.1" class="pilcrow"></a></p>
</li>
<li class="compact toc ulEmpty" id="section-toc.1-1.6">
<li class="compact ulEmpty toc" id="section-toc.1-1.6">
<p id="section-toc.1-1.6.1"><a href="#section-6" class="xref">6</a>.  <a href="#name-references-2" class="xref">References</a><a href="#section-toc.1-1.6.1" class="pilcrow"></a></p>
<ul class="compact toc ulEmpty">
<li class="compact toc ulEmpty" id="section-toc.1-1.6.2.1">
<ul class="compact ulEmpty toc">
<li class="compact ulEmpty toc" id="section-toc.1-1.6.2.1">
<p id="section-toc.1-1.6.2.1.1"><a href="#section-6.1" class="xref">6.1</a>.  <a href="#name-normative-references-2" class="xref">Normative References</a><a href="#section-toc.1-1.6.2.1.1" class="pilcrow"></a></p>
</li>
<li class="compact toc ulEmpty" id="section-toc.1-1.6.2.2">
<li class="compact ulEmpty toc" id="section-toc.1-1.6.2.2">
<p id="section-toc.1-1.6.2.2.1"><a href="#section-6.2" class="xref">6.2</a>.  <a href="#name-informative-references-2" class="xref">Informative References</a><a href="#section-toc.1-1.6.2.2.1" class="pilcrow"></a></p>
</li>
</ul>
</li>
<li class="compact toc ulEmpty" id="section-toc.1-1.7">
<li class="compact ulEmpty toc" id="section-toc.1-1.7">
<p id="section-toc.1-1.7.1"><a href="#section-appendix.a" class="xref"></a><a href="#name-authors-addresses-2" class="xref">Authors' Addresses</a><a href="#section-toc.1-1.7.1" class="pilcrow"></a></p>
</li>
</ul>
Expand Down Expand Up @@ -1651,7 +1651,7 @@ <h6 id="name-syntax-10">
<div id="section-2.6.2.4.1-7">
<pre class="sourcecode lang-abnf">
array-slice = [ integer ] ws %x3A ws [ integer ]
[ ws %x3A ws integer ]
[ ws %x3A ws [ integer ] ]
; start:end or start:end:step
</pre><a href="#section-2.6.2.4.1-7" class="pilcrow"></a>
</div>
Expand Down
Loading

0 comments on commit 302f3a8

Please sign in to comment.