From d9f83dded93a35fb333c4e1bd371c401f7129fd1 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 11 Mar 2019 11:04:25 -0300 Subject: Some details before release 1.0.2 - changed release number - small corrections in 'pack' - removed "about" section in .html files - added files 'HISTORY' and 'lpeg-128.gif' --- HISTORY | 100 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ lpeg-128.gif | Bin 0 -> 4923 bytes lpeg.html | 10 ++---- lptypes.h | 4 +-- makefile | 4 +-- pack | 3 +- re.html | 6 ---- 7 files changed, 107 insertions(+), 20 deletions(-) create mode 100644 HISTORY create mode 100644 lpeg-128.gif diff --git a/HISTORY b/HISTORY new file mode 100644 index 0000000..66a8e14 --- /dev/null +++ b/HISTORY @@ -0,0 +1,100 @@ +HISTORY for LPeg 1.0.2 + +* Changes from version 1.0.1 to 1.0.2 + --------------------------------- + + some bugs fixed + +* Changes from version 0.12 to 1.0.1 + --------------------------------- + + group "names" can be any Lua value + + some bugs fixed + + other small improvements + +* Changes from version 0.11 to 0.12 + --------------------------------- + + no "unsigned short" limit for pattern sizes + + mathtime captures considered nullable + + some bugs fixed + +* Changes from version 0.10 to 0.11 + ------------------------------- + + complete reimplementation of the code generator + + new syntax for table captures + + new functions in module 're' + + other small improvements + +* Changes from version 0.9 to 0.10 + ------------------------------- + + backtrack stack has configurable size + + better error messages + + Notation for non-terminals in 're' back to A instead o + + experimental look-behind pattern + + support for external extensions + + works with Lua 5.2 + + consumes less C stack + + - "and" predicates do not keep captures + +* Changes from version 0.8 to 0.9 + ------------------------------- + + The accumulator capture was replaced by a fold capture; + programs that used the old 'lpeg.Ca' will need small changes. + + Some support for character classes from old C locales. + + A new named-group capture. + +* Changes from version 0.7 to 0.8 + ------------------------------- + + New "match-time" capture. + + New "argument capture" that allows passing arguments into the pattern. + + Better documentation for 're'. + + Several small improvements for 're'. + + The 're' module has an incompatibility with previous versions: + now, any use of a non-terminal must be enclosed in angle brackets + (like ). + +* Changes from version 0.6 to 0.7 + ------------------------------- + + Several improvements in module 're': + - better documentation; + - support for most captures (all but accumulator); + - limited repetitions p{n,m}. + + Small improvements in efficiency. + + Several small bugs corrected (special thanks to Hans Hagen + and Taco Hoekwater). + +* Changes from version 0.5 to 0.6 + ------------------------------- + + Support for non-numeric indices in grammars. + + Some bug fixes (thanks to the luatex team). + + Some new optimizations; (thanks to Mike Pall). + + A new page layout (thanks to Andre Carregal). + + Minimal documentation for module 're'. + +* Changes from version 0.4 to 0.5 + ------------------------------- + + Several optimizations. + + lpeg.P now accepts booleans. + + Some new examples. + + A proper license. + + Several small improvements. + +* Changes from version 0.3 to 0.4 + ------------------------------- + + Static check for loops in repetitions and grammars. + + Removed label option in captures. + + The implementation of captures uses less memory. + +* Changes from version 0.2 to 0.3 + ------------------------------- + + User-defined patterns in Lua. + + Several new captures. + +* Changes from version 0.1 to 0.2 + ------------------------------- + + Several small corrections. + + Handles embedded zeros like any other character. + + Capture "name" can be any Lua value. + + Unlimited number of captures. + + Match gets an optional initial position. + +(end of HISTORY) diff --git a/lpeg-128.gif b/lpeg-128.gif new file mode 100644 index 0000000..bbf5e78 Binary files /dev/null and b/lpeg-128.gif 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.

Download

LPeg -source code.

+source code.

License

-Copyright © 2007-2017 Lua.org, PUC-Rio. +Copyright © 2007-2019 Lua.org, PUC-Rio.

Permission is hereby granted, free of charge, @@ -1433,12 +1433,6 @@ THE SOFTWARE. -

-

-$Id: lpeg.html,v 1.77 2017/01/13 13:40:05 roberto Exp $ -

-
- diff --git a/lptypes.h b/lptypes.h index 0b1df6f..1d9d59f 100644 --- a/lptypes.h +++ b/lptypes.h @@ -1,7 +1,7 @@ /* ** $Id: lptypes.h $ ** LPeg - PEG pattern matching for Lua -** Copyright 2007-2017, Lua.org & PUC-Rio (see 'lpeg.html' for license) +** Copyright 2007-2019, Lua.org & PUC-Rio (see 'lpeg.html' for license) ** written by Roberto Ierusalimschy */ @@ -15,7 +15,7 @@ #include "lua.h" -#define VERSION "1.0.1" +#define VERSION "1.0.2" #define PATTERN_T "lpeg-pattern" diff --git a/makefile b/makefile index 9518034..1e32195 100644 --- a/makefile +++ b/makefile @@ -1,8 +1,8 @@ LIBNAME = lpeg LUADIR = ../lua/ -# COPT = -O2 -DNDEBUG -COPT = -g +COPT = -O2 -DNDEBUG +# COPT = -g CWARNS = -Wall -Wextra -pedantic \ -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 \ NAME=lpeg-$1 DIRN=versions/$NAME mkdir $DIRN -co $FILES -mv $FILES $DIRN +cp $FILES $DIRN cd versions tar --create --gzip --file=$NAME.tar.gz $NAME # 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. -
-

-$Id: re.html,v 1.25 2018/06/04 16:21:19 roberto Exp $ -

-
- -- cgit v1.2.3-55-g6feb