aboutsummaryrefslogtreecommitdiff
path: root/re.html
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-04-10 13:47:45 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-04-10 13:47:45 -0300
commit05edfcff9b7eca52571b221e614b5cbf84e7d43d (patch)
tree37ca0e23753461795eb3ea6df873d725b94ba54e /re.html
parentafd7b912611d5777c12d55cb533beee760207949 (diff)
downloadlpeg-05edfcff9b7eca52571b221e614b5cbf84e7d43d.tar.gz
lpeg-05edfcff9b7eca52571b221e614b5cbf84e7d43d.tar.bz2
lpeg-05edfcff9b7eca52571b221e614b5cbf84e7d43d.zip
Documentation
Removed '$Id' from all files + updated copyright year + other changes in comments and documentation
Diffstat (limited to 're.html')
-rw-r--r--re.html9
1 files changed, 4 insertions, 5 deletions
diff --git a/re.html b/re.html
index 24a582a..ed4ccb1 100644
--- a/re.html
+++ b/re.html
@@ -10,7 +10,6 @@
10</head> 10</head>
11<body> 11<body>
12 12
13<!-- $Id: re.html $ -->
14 13
15<div id="container"> 14<div id="container">
16 15
@@ -95,7 +94,7 @@ equivalent to <code>p / defs[name]</code></td></tr>
95equivalent to <code>lpeg.Cmt(p, defs[name])</code></td></tr> 94equivalent to <code>lpeg.Cmt(p, defs[name])</code></td></tr>
96<tr><td><code>p ~&gt; name</code></td> <td>fold capture 95<tr><td><code>p ~&gt; name</code></td> <td>fold capture
97equivalent to <code>lpeg.Cf(p, defs[name])</code></td></tr> 96equivalent to <code>lpeg.Cf(p, defs[name])</code></td></tr>
98<tr><td><code>& p</code></td> <td>and predicate</td></tr> 97<tr><td><code>&amp; p</code></td> <td>and predicate</td></tr>
99<tr><td><code>! p</code></td> <td>not predicate</td></tr> 98<tr><td><code>! p</code></td> <td>not predicate</td></tr>
100<tr><td><code>p1 p2</code></td> <td>concatenation</td></tr> 99<tr><td><code>p1 p2</code></td> <td>concatenation</td></tr>
101<tr><td><code>p1 / p2</code></td> <td>ordered choice</td></tr> 100<tr><td><code>p1 / p2</code></td> <td>ordered choice</td></tr>
@@ -103,7 +102,7 @@ equivalent to <code>lpeg.Cf(p, defs[name])</code></td></tr>
103</tbody></table> 102</tbody></table>
104<p> 103<p>
105Any space appearing in a syntax description can be 104Any space appearing in a syntax description can be
106replaced by zero or more space characters and Lua-style comments 105replaced by zero or more space characters and Lua-style short comments
107(<code>--</code> until end of line). 106(<code>--</code> until end of line).
108</p> 107</p>
109 108
@@ -329,7 +328,7 @@ respecting the indentation:
329<pre class="example"> 328<pre class="example">
330p = re.compile[[ 329p = re.compile[[
331 block &lt;- {| {:ident:' '*:} line 330 block &lt;- {| {:ident:' '*:} line
332 ((=ident !' ' line) / &(=ident ' ') block)* |} 331 ((=ident !' ' line) / &amp;(=ident ' ') block)* |}
333 line &lt;- {[^%nl]*} %nl 332 line &lt;- {[^%nl]*} %nl
334]] 333]]
335</pre> 334</pre>
@@ -453,7 +452,7 @@ print(re.match(p, p)) -- a self description must match itself
453<h2><a name="license">License</a></h2> 452<h2><a name="license">License</a></h2>
454 453
455<p> 454<p>
456Copyright &copy; 2008-2015 Lua.org, PUC-Rio. 455Copyright &copy; 2008-2023 Lua.org, PUC-Rio.
457</p> 456</p>
458<p> 457<p>
459Permission is hereby granted, free of charge, 458Permission is hereby granted, free of charge,