aboutsummaryrefslogtreecommitdiff
path: root/lpeg.html
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-04-22 14:25:14 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-04-22 14:25:14 -0300
commit9dac0b6d8d22705f27b139923948ab050c12f6f5 (patch)
tree13f95fe70373fc9213bb76a4a77bef221a2d80a3 /lpeg.html
parent24bf757183d8bd97f6f5b43d916814f3269c8347 (diff)
downloadlpeg-9dac0b6d8d22705f27b139923948ab050c12f6f5.tar.gz
lpeg-9dac0b6d8d22705f27b139923948ab050c12f6f5.tar.bz2
lpeg-9dac0b6d8d22705f27b139923948ab050c12f6f5.zip
'lpeg.version' changed to a string
Diffstat (limited to 'lpeg.html')
-rw-r--r--lpeg.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/lpeg.html b/lpeg.html
index 1295c4f..87348cf 100644
--- a/lpeg.html
+++ b/lpeg.html
@@ -22,7 +22,7 @@
22 </div> 22 </div>
23 <div id="product_name"><big><strong>LPeg</strong></big></div> 23 <div id="product_name"><big><strong>LPeg</strong></big></div>
24 <div id="product_description"> 24 <div id="product_description">
25 Parsing Expression Grammars For Lua, version 1.0 25 Parsing Expression Grammars For Lua, version 1.1
26 </div> 26 </div>
27</div> <!-- id="product" --> 27</div> <!-- id="product" -->
28 28
@@ -145,7 +145,7 @@ so, it succeeds only at the end of the subject.
145LPeg also offers the <a href="re.html"><code>re</code> module</a>, 145LPeg also offers the <a href="re.html"><code>re</code> module</a>,
146which implements patterns following a regular-expression style 146which implements patterns following a regular-expression style
147(e.g., <code>[09]+</code>). 147(e.g., <code>[09]+</code>).
148(This module is 260 lines of Lua code, 148(This module is 270 lines of Lua code,
149and of course it uses LPeg to parse regular expressions and 149and of course it uses LPeg to parse regular expressions and
150translate them to regular LPeg patterns.) 150translate them to regular LPeg patterns.)
151</p> 151</p>
@@ -167,7 +167,7 @@ or the <a href="#captures">captured values</a>
167<p> 167<p>
168An optional numeric argument <code>init</code> makes the match 168An optional numeric argument <code>init</code> makes the match
169start at that position in the subject string. 169start at that position in the subject string.
170As usual in Lua libraries, 170As in the Lua standard libraries,
171a negative value counts from the end. 171a negative value counts from the end.
172</p> 172</p>
173 173
@@ -191,9 +191,9 @@ returns the string <code>"pattern"</code>.
191Otherwise returns nil. 191Otherwise returns nil.
192</p> 192</p>
193 193
194<h3><a name="f-version"></a><code>lpeg.version ()</code></h3> 194<h3><a name="f-version"></a><code>lpeg.version</code></h3>
195<p> 195<p>
196Returns a string with the running version of LPeg. 196A string (not a function) with the running version of LPeg.
197</p> 197</p>
198 198
199<h3><a name="f-setstack"></a><code>lpeg.setmaxstack (max)</code></h3> 199<h3><a name="f-setstack"></a><code>lpeg.setmaxstack (max)</code></h3>