Permalink
Browse files

Update to LPeg 0.10

  • Loading branch information...
1 parent 61e4e65 commit 5019d49ce847a87662983acba1e35c9b252bb936 kapec committed Aug 19, 2011
Showing with 865 additions and 333 deletions.
  1. +1 −0 CMakeLists.txt
  2. +75 −0 HISTORY
  3. +1 −1 dist.info
  4. +261 −119 lpeg.c
  5. +38 −0 lpeg.h
  6. +160 −59 lpeg.html
  7. +12 −3 makefile
  8. +90 −23 re.html
  9. +103 −71 re.lua
  10. +124 −57 test.lua
View
@@ -11,6 +11,7 @@ include(dist.cmake)
install_lua_module(lpeg lpeg.c)
install_lua_module(re re.lua)
install_doc(lpeg.html re.html lpeg-128.gif)
+install_data(HISTORY)
install_test(test.lua)
add_lua_test(test.lua)
View
75 HISTORY
@@ -0,0 +1,75 @@
+HISTORY for LPeg 0.10
+
+* 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 <A>
+ + experimental look-behind pattern
+ + support for external extensions
+ + works with Lua 5.2
+ + consumes less C stack
+
+* 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 <B>).
+
+* 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)
View
@@ -1,7 +1,7 @@
--- This file is part of LuaDist project
name = "lpeg"
-version = "0.9"
+version = "0.10"
desc = "Parsing Expression Grammars For Lua"
author = "Roberto Ierusalimschy"
Oops, something went wrong.

0 comments on commit 5019d49

Please sign in to comment.