diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-04-10 13:47:45 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2023-04-10 13:47:45 -0300 |
| commit | 05edfcff9b7eca52571b221e614b5cbf84e7d43d (patch) | |
| tree | 37ca0e23753461795eb3ea6df873d725b94ba54e /re.html | |
| parent | afd7b912611d5777c12d55cb533beee760207949 (diff) | |
| download | lpeg-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.html | 9 |
1 files changed, 4 insertions, 5 deletions
| @@ -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> | |||
| 95 | equivalent to <code>lpeg.Cmt(p, defs[name])</code></td></tr> | 94 | equivalent to <code>lpeg.Cmt(p, defs[name])</code></td></tr> |
| 96 | <tr><td><code>p ~> name</code></td> <td>fold capture | 95 | <tr><td><code>p ~> name</code></td> <td>fold capture |
| 97 | equivalent to <code>lpeg.Cf(p, defs[name])</code></td></tr> | 96 | equivalent 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>& 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> |
| 105 | Any space appearing in a syntax description can be | 104 | Any space appearing in a syntax description can be |
| 106 | replaced by zero or more space characters and Lua-style comments | 105 | replaced 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"> |
| 330 | p = re.compile[[ | 329 | p = re.compile[[ |
| 331 | block <- {| {:ident:' '*:} line | 330 | block <- {| {:ident:' '*:} line |
| 332 | ((=ident !' ' line) / &(=ident ' ') block)* |} | 331 | ((=ident !' ' line) / &(=ident ' ') block)* |} |
| 333 | line <- {[^%nl]*} %nl | 332 | line <- {[^%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> |
| 456 | Copyright © 2008-2015 Lua.org, PUC-Rio. | 455 | Copyright © 2008-2023 Lua.org, PUC-Rio. |
| 457 | </p> | 456 | </p> |
| 458 | <p> | 457 | <p> |
| 459 | Permission is hereby granted, free of charge, | 458 | Permission is hereby granted, free of charge, |
