diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-03-11 11:04:25 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-03-11 11:04:25 -0300 |
| commit | d9f83dded93a35fb333c4e1bd371c401f7129fd1 (patch) | |
| tree | 54c830c8e67f2f0ac261799828b3e8c54d32020c | |
| parent | d97fe6ed31d4b274c88c996b0c06da597a455149 (diff) | |
| download | lpeg-1.0.2.tar.gz lpeg-1.0.2.tar.bz2 lpeg-1.0.2.zip | |
Some details before release 1.0.2v1.0.2
- changed release number
- small corrections in 'pack'
- removed "about" section in .html files
- added files 'HISTORY' and 'lpeg-128.gif'
| -rw-r--r-- | HISTORY | 100 | ||||
| -rw-r--r-- | lpeg-128.gif | bin | 0 -> 4923 bytes | |||
| -rw-r--r-- | lpeg.html | 10 | ||||
| -rw-r--r-- | lptypes.h | 4 | ||||
| -rw-r--r-- | makefile | 4 | ||||
| -rwxr-xr-x | pack | 3 | ||||
| -rw-r--r-- | re.html | 6 |
7 files changed, 107 insertions, 20 deletions
| @@ -0,0 +1,100 @@ | |||
| 1 | HISTORY for LPeg 1.0.2 | ||
| 2 | |||
| 3 | * Changes from version 1.0.1 to 1.0.2 | ||
| 4 | --------------------------------- | ||
| 5 | + some bugs fixed | ||
| 6 | |||
| 7 | * Changes from version 0.12 to 1.0.1 | ||
| 8 | --------------------------------- | ||
| 9 | + group "names" can be any Lua value | ||
| 10 | + some bugs fixed | ||
| 11 | + other small improvements | ||
| 12 | |||
| 13 | * Changes from version 0.11 to 0.12 | ||
| 14 | --------------------------------- | ||
| 15 | + no "unsigned short" limit for pattern sizes | ||
| 16 | + mathtime captures considered nullable | ||
| 17 | + some bugs fixed | ||
| 18 | |||
| 19 | * Changes from version 0.10 to 0.11 | ||
| 20 | ------------------------------- | ||
| 21 | + complete reimplementation of the code generator | ||
| 22 | + new syntax for table captures | ||
| 23 | + new functions in module 're' | ||
| 24 | + other small improvements | ||
| 25 | |||
| 26 | * Changes from version 0.9 to 0.10 | ||
| 27 | ------------------------------- | ||
| 28 | + backtrack stack has configurable size | ||
| 29 | + better error messages | ||
| 30 | + Notation for non-terminals in 're' back to A instead o <A> | ||
| 31 | + experimental look-behind pattern | ||
| 32 | + support for external extensions | ||
| 33 | + works with Lua 5.2 | ||
| 34 | + consumes less C stack | ||
| 35 | |||
| 36 | - "and" predicates do not keep captures | ||
| 37 | |||
| 38 | * Changes from version 0.8 to 0.9 | ||
| 39 | ------------------------------- | ||
| 40 | + The accumulator capture was replaced by a fold capture; | ||
| 41 | programs that used the old 'lpeg.Ca' will need small changes. | ||
| 42 | + Some support for character classes from old C locales. | ||
| 43 | + A new named-group capture. | ||
| 44 | |||
| 45 | * Changes from version 0.7 to 0.8 | ||
| 46 | ------------------------------- | ||
| 47 | + New "match-time" capture. | ||
| 48 | + New "argument capture" that allows passing arguments into the pattern. | ||
| 49 | + Better documentation for 're'. | ||
| 50 | + Several small improvements for 're'. | ||
| 51 | + The 're' module has an incompatibility with previous versions: | ||
| 52 | now, any use of a non-terminal must be enclosed in angle brackets | ||
| 53 | (like <B>). | ||
| 54 | |||
| 55 | * Changes from version 0.6 to 0.7 | ||
| 56 | ------------------------------- | ||
| 57 | + Several improvements in module 're': | ||
| 58 | - better documentation; | ||
| 59 | - support for most captures (all but accumulator); | ||
| 60 | - limited repetitions p{n,m}. | ||
| 61 | + Small improvements in efficiency. | ||
| 62 | + Several small bugs corrected (special thanks to Hans Hagen | ||
| 63 | and Taco Hoekwater). | ||
| 64 | |||
| 65 | * Changes from version 0.5 to 0.6 | ||
| 66 | ------------------------------- | ||
| 67 | + Support for non-numeric indices in grammars. | ||
| 68 | + Some bug fixes (thanks to the luatex team). | ||
| 69 | + Some new optimizations; (thanks to Mike Pall). | ||
| 70 | + A new page layout (thanks to Andre Carregal). | ||
| 71 | + Minimal documentation for module 're'. | ||
| 72 | |||
| 73 | * Changes from version 0.4 to 0.5 | ||
| 74 | ------------------------------- | ||
| 75 | + Several optimizations. | ||
| 76 | + lpeg.P now accepts booleans. | ||
| 77 | + Some new examples. | ||
| 78 | + A proper license. | ||
| 79 | + Several small improvements. | ||
| 80 | |||
| 81 | * Changes from version 0.3 to 0.4 | ||
| 82 | ------------------------------- | ||
| 83 | + Static check for loops in repetitions and grammars. | ||
| 84 | + Removed label option in captures. | ||
| 85 | + The implementation of captures uses less memory. | ||
| 86 | |||
| 87 | * Changes from version 0.2 to 0.3 | ||
| 88 | ------------------------------- | ||
| 89 | + User-defined patterns in Lua. | ||
| 90 | + Several new captures. | ||
| 91 | |||
| 92 | * Changes from version 0.1 to 0.2 | ||
| 93 | ------------------------------- | ||
| 94 | + Several small corrections. | ||
| 95 | + Handles embedded zeros like any other character. | ||
| 96 | + Capture "name" can be any Lua value. | ||
| 97 | + Unlimited number of captures. | ||
| 98 | + Match gets an optional initial position. | ||
| 99 | |||
| 100 | (end of HISTORY) | ||
diff --git a/lpeg-128.gif b/lpeg-128.gif new file mode 100644 index 0000000..bbf5e78 --- /dev/null +++ b/lpeg-128.gif | |||
| Binary files differ | |||
| @@ -1391,13 +1391,13 @@ and the new term for each repetition. | |||
| 1391 | <h2><a name="download"></a>Download</h2> | 1391 | <h2><a name="download"></a>Download</h2> |
| 1392 | 1392 | ||
| 1393 | <p>LPeg | 1393 | <p>LPeg |
| 1394 | <a href="http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-1.0.1.tar.gz">source code</a>.</p> | 1394 | <a href="http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-1.0.2.tar.gz">source code</a>.</p> |
| 1395 | 1395 | ||
| 1396 | 1396 | ||
| 1397 | <h2><a name="license">License</a></h2> | 1397 | <h2><a name="license">License</a></h2> |
| 1398 | 1398 | ||
| 1399 | <p> | 1399 | <p> |
| 1400 | Copyright © 2007-2017 Lua.org, PUC-Rio. | 1400 | Copyright © 2007-2019 Lua.org, PUC-Rio. |
| 1401 | </p> | 1401 | </p> |
| 1402 | <p> | 1402 | <p> |
| 1403 | Permission is hereby granted, free of charge, | 1403 | Permission is hereby granted, free of charge, |
| @@ -1433,12 +1433,6 @@ THE SOFTWARE. | |||
| 1433 | 1433 | ||
| 1434 | </div> <!-- id="main" --> | 1434 | </div> <!-- id="main" --> |
| 1435 | 1435 | ||
| 1436 | <div id="about"> | ||
| 1437 | <p><small> | ||
| 1438 | $Id: lpeg.html,v 1.77 2017/01/13 13:40:05 roberto Exp $ | ||
| 1439 | </small></p> | ||
| 1440 | </div> <!-- id="about" --> | ||
| 1441 | |||
| 1442 | </div> <!-- id="container" --> | 1436 | </div> <!-- id="container" --> |
| 1443 | 1437 | ||
| 1444 | </body> | 1438 | </body> |
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lptypes.h $ | 2 | ** $Id: lptypes.h $ |
| 3 | ** LPeg - PEG pattern matching for Lua | 3 | ** LPeg - PEG pattern matching for Lua |
| 4 | ** Copyright 2007-2017, Lua.org & PUC-Rio (see 'lpeg.html' for license) | 4 | ** Copyright 2007-2019, Lua.org & PUC-Rio (see 'lpeg.html' for license) |
| 5 | ** written by Roberto Ierusalimschy | 5 | ** written by Roberto Ierusalimschy |
| 6 | */ | 6 | */ |
| 7 | 7 | ||
| @@ -15,7 +15,7 @@ | |||
| 15 | #include "lua.h" | 15 | #include "lua.h" |
| 16 | 16 | ||
| 17 | 17 | ||
| 18 | #define VERSION "1.0.1" | 18 | #define VERSION "1.0.2" |
| 19 | 19 | ||
| 20 | 20 | ||
| 21 | #define PATTERN_T "lpeg-pattern" | 21 | #define PATTERN_T "lpeg-pattern" |
| @@ -1,8 +1,8 @@ | |||
| 1 | LIBNAME = lpeg | 1 | LIBNAME = lpeg |
| 2 | LUADIR = ../lua/ | 2 | LUADIR = ../lua/ |
| 3 | 3 | ||
| 4 | # COPT = -O2 -DNDEBUG | 4 | COPT = -O2 -DNDEBUG |
| 5 | COPT = -g | 5 | # COPT = -g |
| 6 | 6 | ||
| 7 | CWARNS = -Wall -Wextra -pedantic \ | 7 | CWARNS = -Wall -Wextra -pedantic \ |
| 8 | -Waggregate-return \ | 8 | -Waggregate-return \ |
| @@ -5,8 +5,7 @@ FILES="makefile HISTORY test.lua re.lua lpeg.html re.html lpeg-128.gif \ | |||
| 5 | NAME=lpeg-$1 | 5 | NAME=lpeg-$1 |
| 6 | DIRN=versions/$NAME | 6 | DIRN=versions/$NAME |
| 7 | mkdir $DIRN | 7 | mkdir $DIRN |
| 8 | co $FILES | 8 | cp $FILES $DIRN |
| 9 | mv $FILES $DIRN | ||
| 10 | cd versions | 9 | cd versions |
| 11 | tar --create --gzip --file=$NAME.tar.gz $NAME | 10 | tar --create --gzip --file=$NAME.tar.gz $NAME |
| 12 | # scp $NAME.tar.gz obaluae:public_html/lpeg/ | 11 | # scp $NAME.tar.gz obaluae:public_html/lpeg/ |
| @@ -488,12 +488,6 @@ THE SOFTWARE. | |||
| 488 | 488 | ||
| 489 | </div> <!-- id="main" --> | 489 | </div> <!-- id="main" --> |
| 490 | 490 | ||
| 491 | <div id="about"> | ||
| 492 | <p><small> | ||
| 493 | $Id: re.html,v 1.25 2018/06/04 16:21:19 roberto Exp $ | ||
| 494 | </small></p> | ||
| 495 | </div> <!-- id="about" --> | ||
| 496 | |||
| 497 | </div> <!-- id="container" --> | 491 | </div> <!-- id="container" --> |
| 498 | 492 | ||
| 499 | </body> | 493 | </body> |
