Debian Codegraph @

NEWS

raw
1 1.3.0 (2015-09-08):
2 - Added python 3 support.
3 - Added an example of parsing ISO 8601.
4 - Support rule arguments in parser protocols.
5
6 1.2.0 (2013-08-01):
7 - Added 'makeProtocol' for parsing stream protocols using Parsley
8 grammars and Twisted, with examples, docs, and a tutorial.
9 - Added 'stack' as support for 'makeProtocol'.
10 - Sped up parsing; started compiling python expressons only once.
11 (thanks to eevee!)
12 - Allowed tuple unpacking in assignment in rules. For example,
13 `rule1 = rule2:(a, b) -> a + b`. (thanks to introom!)
14 - Added a trace hook and an example of a trace visualizer using it.
15 - Fixed an example in the README. (thanks to ilmarga!)
16 - Added support for custom labels in grammars. For example,
17 `rule1 = rule2 ^(foo)` will make Parsley consider 'foo' the name for
18 'rule2' in error messages. (thanks to miebster!)
19
20 1.1.0 (2013-03-03):
21 - The 'spaces' rule has been provided under the alias 'ws'; 'spaces'
22 is now the deprecated name.
23 - Single quotes can now be used around multiple characters to match
24 them consecutively. For example, 'abc' is equivalent 'a' 'b' 'c'.
25 - The 'token' rule is thus deprecated as well, since "token('foo')"
26 is more typing than "ws 'foo'".
27 - Hex escapes can now be used in literals for matching bytes.
28 - 'makeGrammar' now takes an 'unwrap' argument, to get a grammar
29 class suitable for subclassing.
30 - 'makeGrammar' also takes an 'extends' argument that can be either a
31 regular python class or a wrapped Parsley grammar, for simple
32 subclassing.
33 - 'repeat' expressions now work for 0 repetitions properly.
34 - ometa.runtime.TIMING flag added for enabling debug output of
35 grammar load times.
36 - OMeta version 1 parser moved to ometa.compat.
37 - Twine removed.
38 - Various bugfixes around error reporting.
39 - Parsley no longer loads its internal grammars at import time. The
40 'stage' script in bin/ is used to regenerate the compiled versions
41 after modification.
42 - Experimental tree transformer grammars, with special syntax for
43 destructuring terms and creating string templates, have been added.
44
45 1.0.0 (2012-10-01):
46 - PyMeta is now Parsley.
47 - A new public API has been added in the 'parsley' module.
48 - Grammars now use the OMeta 2 syntax by default. Compatibility is
49 available via ometa.grammar.OMeta1.
50 - A generic AST-handling library has been added, 'terml'.
51 - Grammars now parse to term trees instead of nested lists. The code
52 generator has accordingly been greatly simplified.
53 - A grammar interpreter has been added, which parses by evaluating
54 the grammar term tree directly instead of generating a class.
55 - A push parser has been added which accepts data in arbitrary
56 chunks, maintaining state while waiting for more input.
57
58 0.4.0 (2010-05-15):
59 - Builders now work from a grammar AST, rather than being driven by
60 the grammar parser directly.
61 - All parse operations now carry error information, including what
62 was expected to be parsed and where.
63 * Consequently, ParseError now has a 'formatError' method that takes
64 the input string and returns a human-readable description the
65 parse failure.
66 - New example: TermL parser, in examples/terml.
67 - New script, bin/generate_parser. Takes a file containing a PyMeta
68 grammar as input and writes a Python module file.
69
70 - A couple bugfixes:
71 #248643 subclassed grammars don't inherit base namespace
72 #564135 makeGrammar error handling for nonsensical grammars is broken
73
74
75 0.3.0 (2008-07-12):
76 - Input stream now implemented like the Javascript version, with immutable
77 position objects.
78
79 0.2.0 (2008-04-17):
80 - Grammars generate Python source instead of ASTs.
81 - OMeta now has a "metagrammarClass" attribute, to ease extension of
82 the metagrammar.
83
84 0.1.1 (2008-03-27):
85 - Fixed a bug in 'super'.
86
87 0.1 (2008-03-26):
88 - Initial release.