diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-04-22 14:25:14 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-04-22 14:25:14 -0300 |
| commit | 9dac0b6d8d22705f27b139923948ab050c12f6f5 (patch) | |
| tree | 13f95fe70373fc9213bb76a4a77bef221a2d80a3 /lpeg.html | |
| parent | 24bf757183d8bd97f6f5b43d916814f3269c8347 (diff) | |
| download | lpeg-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.html | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -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. | |||
| 145 | LPeg also offers the <a href="re.html"><code>re</code> module</a>, | 145 | LPeg also offers the <a href="re.html"><code>re</code> module</a>, |
| 146 | which implements patterns following a regular-expression style | 146 | which 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, |
| 149 | and of course it uses LPeg to parse regular expressions and | 149 | and of course it uses LPeg to parse regular expressions and |
| 150 | translate them to regular LPeg patterns.) | 150 | translate 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> |
| 168 | An optional numeric argument <code>init</code> makes the match | 168 | An optional numeric argument <code>init</code> makes the match |
| 169 | start at that position in the subject string. | 169 | start at that position in the subject string. |
| 170 | As usual in Lua libraries, | 170 | As in the Lua standard libraries, |
| 171 | a negative value counts from the end. | 171 | a negative value counts from the end. |
| 172 | </p> | 172 | </p> |
| 173 | 173 | ||
| @@ -191,9 +191,9 @@ returns the string <code>"pattern"</code>. | |||
| 191 | Otherwise returns nil. | 191 | Otherwise 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> |
| 196 | Returns a string with the running version of LPeg. | 196 | A 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> |
