| 1 |
2003-08-27 Amit Patel <[email protected]> |
| 2 |
|
| 3 |
* *: (VERSION) Release 2.1.1 |
| 4 |
|
| 5 |
* *: Added a test/ directory for test cases; I had previously put |
| 6 |
tests in the examples/ directory, which is a bad place to put |
| 7 |
them. Examples are useful for learning how Yapps works. Tests |
| 8 |
are for testing specific features of Yapps. |
| 9 |
|
| 10 |
* parsetree.py (Plus.update): Fixed a long-standing bug in which |
| 11 |
the FOLLOW set of 'a'+ would include 'a'. In theory this makes no |
| 12 |
practical difference because the 'a'+ rule eats up all the 'a' |
| 13 |
tokens anyway. However, it makes error messages a little bit more |
| 14 |
confusing because they imply that an 'a' can follow. |
| 15 |
|
| 16 |
* yappsrt.py (print_error): Incorporated the context object into |
| 17 |
the printing of error messages. |
| 18 |
|
| 19 |
2003-08-12 Amit Patel <[email protected]> |
| 20 |
|
| 21 |
* *: (VERSION) Release 2.1.0 |
| 22 |
|
| 23 |
* parsetree.py: Improved error message generation. Instead of |
| 24 |
relying on the scanner to produce errors, the parser now checks |
| 25 |
things explicitly and produces errors directly. The parser has |
| 26 |
better knowledge of the context, so its error messages are more |
| 27 |
precise and helpful. |
| 28 |
|
| 29 |
* yapps_grammar.g: Instead of setting self.rule in the setup() |
| 30 |
method, pass it in the constructor. To make it available at |
| 31 |
construction time, pass it along as another attribute in the |
| 32 |
attribute grammar. |
| 33 |
|
| 34 |
2003-08-11 Amit Patel <[email protected]> |
| 35 |
|
| 36 |
* parsetree.py: Generated parsers now include a context object |
| 37 |
that describes the parse rule stack. For example, while parsing |
| 38 |
rule A, called from rule B, called from rule D, the context object |
| 39 |
will let you reconstruct the path D > B > A. [Thanks David Morley] |
| 40 |
|
| 41 |
* *: Removed all output when things are working |
| 42 |
properly; all warnings/errors now go to stderr. |
| 43 |
|
| 44 |
* yapps_grammar.g: Added support for A? meaning an optional A. |
| 45 |
This is equivalent to [A]. |
| 46 |
|
| 47 |
* yapps2.py: Design - refactored yapps2.py into yapps2.py + |
| 48 |
grammar.py + parsetree.py. grammar.py is automatically generated |
| 49 |
from grammar.g. Added lots of docstrings. |
| 50 |
|
| 51 |
2003-08-09 Amit Patel <[email protected]> |
| 52 |
|
| 53 |
* yapps2.py: Documentation - added doctest tests to some of the |
| 54 |
set algorithms in class Generator. |
| 55 |
|
| 56 |
* yapps2.py: Style - removed "import *" everywhere. |
| 57 |
|
| 58 |
* yapps2.py: Style - moved to Python 2 -- string methods, |
| 59 |
list comprehensions, inline syntax for apply |
| 60 |
|
| 61 |
2003-07-28 Amit Patel <[email protected]> |
| 62 |
|
| 63 |
* *: (VERSION) Release 2.0.4 |
| 64 |
|
| 65 |
* yappsrt.py: Style - replaced raising string exceptions |
| 66 |
with raising class exceptions. [Thanks Alex Verstak] |
| 67 |
|
| 68 |
* yappsrt.py: (SyntaxError) Bug fix - SyntaxError.__init__ should |
| 69 |
call Exception.__init__ |
| 70 |
|
| 71 |
* yapps2.py: Bug fix - identifiers in grammar rules that had |
| 72 |
digits in them were not accessible in the {{python code}} sections |
| 73 |
of the grammar. |
| 74 |
|
| 75 |
* yapps2.py: Style - changed "b >= a and b < c" to "a <= b < c" |
| 76 |
|
| 77 |
* yapps2.py: Style - change "`expr`" to "repr(expr)" |
| 78 |
|
| 79 |
2002-08-00 Amit Patel <[email protected]> |
| 80 |
|
| 81 |
* *: (VERSION) Release 2.0.3 |
| 82 |
|
| 83 |
* yapps2.py: Bug fix - inline tokens using the r"" syntax weren't |
| 84 |
treated properly. |
| 85 |
|
| 86 |
2002-04-00 Amit Patel <[email protected]> |
| 87 |
|
| 88 |
* *: (VERSION) Release 2.0.2 |
| 89 |
|
| 90 |
* yapps2.py: Bug fix - when generating the "else" clause, if the |
| 91 |
comment was too long, Yapps was not emitting a newline. [Thanks |
| 92 |
Steven Engelhardt] |
| 93 |
|
| 94 |
2001-10-00 Amit Patel <[email protected]> |
| 95 |
|
| 96 |
* *: (VERSION) Release 2.0.1 |
| 97 |
|
| 98 |
* yappsrt.py: (SyntaxError) Style - the exception classes now |
| 99 |
inherit from Exception. [Thanks Rich Salz] |
| 100 |
|
| 101 |
* yappsrt.py: (Scanner) Performance - instead of passing the set |
| 102 |
of tokens into the scanner at initialization time, we build the |
| 103 |
list at compile time. You can still override the default list per |
| 104 |
instance of the scanner, but in the common case, we don't have to |
| 105 |
rebuild the token list. [Thanks Amaury Forgeot d'Arc] |
| 106 |
|
| 107 |
|
| 108 |
|