diff --git a/HISTORY b/HISTORY index 926cb1e..845a4ac 100644 --- a/HISTORY +++ b/HISTORY @@ -1,4 +1,10 @@ -HISTORY for LPegLabel 1.5.0-1 +HISTORY for LPegLabel 1.6.0-1 + +* Changes from version 1.5.0-1 to 1.6.0-1 + --------------------------------- + + updating LPegLabel to the codebase of LPeg (1.1.0?) + + fixing bug related to head fail optimization + * Changes from version 1.4.0-1 to 1.5.0-1 --------------------------------- diff --git a/LICENSE b/LICENSE index f7fc10c..db08683 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2014-2017 Sérgio Medeiros +Copyright (c) 2014-2019 Sérgio Medeiros Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index c2ddbb9..c9cbb4a 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ not propagate `l`, or calls its associated recovery rule. #### %{l} -Syntax of *relabel* module. Equivalent to `lpeg.T(l)`. +Syntax of *relabel* module. Equivalent to `lpeglabel.T(l)`. Label `l` must be a valid identifier name. diff --git a/rockspecs/lpeglabel-1.6.0-1.rockspec b/rockspecs/lpeglabel-1.6.0-1.rockspec new file mode 100644 index 0000000..64f5b6f --- /dev/null +++ b/rockspecs/lpeglabel-1.6.0-1.rockspec @@ -0,0 +1,33 @@ +package = "LPegLabel" +version = "1.6.0-1" +source = { + url = "https://github.com/sqmedeiros/lpeglabel/archive/v1.6.0-1.tar.gz", + tag = "v1.6.0-1", + dir = "lpeglabel-1.6.0-1", +} +description = { + summary = "Parsing Expression Grammars For Lua with Labeled Failures", + detailed = [[ + LPegLabel is a conservative extension of the LPeg library that provides + an implementation of Parsing Expression Grammars (PEGs) with labeled failures. + By using labeled failures we can properly report syntactical errors. + We can also recover from such errors by describing a grammar rule with + the same name of a given label. + LPegLabel also reports the farthest failure position in case of an ordinary failure. + ]], + homepage = "https://github.com/sqmedeiros/lpeglabel/", + maintainer = "Sergio Medeiros ", + license = "MIT/X11" +} +dependencies = { + "lua >= 5.1", +} +build = { + type = "builtin", + modules = { + lpeglabel = { + "lpcap.c", "lpcode.c", "lpprint.c", "lptree.c", "lpvm.c" + }, + relabel = "relabel.lua" + } +}