Various usability improvements

This commit is contained in:
David Beazley
2018-11-18 06:42:22 -06:00
parent 0ac3c1a0a3
commit 503fae9e18
2 changed files with 31 additions and 9 deletions

21
CHANGES
View File

@@ -1,5 +1,26 @@
Version 0.4
-----------
11/18/2018 Various usability fixes observed from last compilers course.
- Errors encountered during grammar construction are now
reported as part of the raised GrammarError exception
instead of via logging. This places them in the same
visual position as normal Python errors (at the end
of the traceback)
- Repeated warning messages about unused tokens have
been consolidated in a single warning message to make
the output less verbose.
- Grammar attributes (e.g., p.TOKEN) used during parsing
are now read-only.
- The error about "infinite recursion" is only checked
if there are no undefined grammar symbols. Sometimes
you'd get this message and be confused when the only
mistake was a bad token name or similar.
9/8/2018 Fixed Issue #14. YaccProduction index property causes
AttributeError if index is 0