summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY100
-rw-r--r--lpeg-128.gifbin0 -> 4923 bytes
-rw-r--r--lpeg.html10
-rw-r--r--lptypes.h4
-rw-r--r--makefile4
-rwxr-xr-xpack3
-rw-r--r--re.html6
7 files changed, 107 insertions, 20 deletions
diff --git a/HISTORY b/HISTORY
new file mode 100644
index 0000000..66a8e14
--- /dev/null
+++ b/HISTORY
@@ -0,0 +1,100 @@
1HISTORY 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
diff --git a/lpeg.html b/lpeg.html
index 855e83f..8b9f59c 100644
--- a/lpeg.html
+++ b/lpeg.html
@@ -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>
1400Copyright &copy; 2007-2017 Lua.org, PUC-Rio. 1400Copyright &copy; 2007-2019 Lua.org, PUC-Rio.
1401</p> 1401</p>
1402<p> 1402<p>
1403Permission is hereby granted, free of charge, 1403Permission 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>
diff --git a/lptypes.h b/lptypes.h
index 0b1df6f..1d9d59f 100644
--- a/lptypes.h
+++ b/lptypes.h
@@ -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"
diff --git a/makefile b/makefile
index 9518034..1e32195 100644
--- a/makefile
+++ b/makefile
@@ -1,8 +1,8 @@
1LIBNAME = lpeg 1LIBNAME = lpeg
2LUADIR = ../lua/ 2LUADIR = ../lua/
3 3
4# COPT = -O2 -DNDEBUG 4COPT = -O2 -DNDEBUG
5COPT = -g 5# COPT = -g
6 6
7CWARNS = -Wall -Wextra -pedantic \ 7CWARNS = -Wall -Wextra -pedantic \
8 -Waggregate-return \ 8 -Waggregate-return \
diff --git a/pack b/pack
index 7f5556f..4ebc4a6 100755
--- a/pack
+++ b/pack
@@ -5,8 +5,7 @@ FILES="makefile HISTORY test.lua re.lua lpeg.html re.html lpeg-128.gif \
5NAME=lpeg-$1 5NAME=lpeg-$1
6DIRN=versions/$NAME 6DIRN=versions/$NAME
7mkdir $DIRN 7mkdir $DIRN
8co $FILES 8cp $FILES $DIRN
9mv $FILES $DIRN
10cd versions 9cd versions
11tar --create --gzip --file=$NAME.tar.gz $NAME 10tar --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/
diff --git a/re.html b/re.html
index 5c08786..ad60d50 100644
--- a/re.html
+++ b/re.html
@@ -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>