diff options
author | ptmcg <ptmcg@austin.rr.com> | 2019-01-07 20:00:53 -0600 |
---|---|---|
committer | ptmcg <ptmcg@austin.rr.com> | 2019-01-07 20:00:53 -0600 |
commit | bf348d6f00c58b6dbcfcc8e4e5ef2af7f904926c (patch) | |
tree | bac1a1fdf567f0c65c9804b205bad17b657c0586 | |
parent | 898a4b89df51d4ce3a102ec3a823227f44552178 (diff) | |
download | pyparsing-git-bf348d6f00c58b6dbcfcc8e4e5ef2af7f904926c.tar.gz |
Update CHANGES to include note on fixing issue #65; generalized the note about the decaf language example; added sample code from the statemachine examples.
-rw-r--r-- | CHANGES | 30 |
1 files changed, 28 insertions, 2 deletions
@@ -59,10 +59,33 @@ Version 2.3.1 - January, 2019 . traffic light . library book checkin/checkout . document review/approval + + In the traffic light example, you can use the custom 'statemachine' keyword + to define the states for a traffic light, and have the state classes + auto-generated for you: + + statemachine TrafficLightState: + Red -> Green + Green -> Yellow + Yellow -> Red + + Similar for state machines with named transitions, like the library book + state example: + + statemachine LibraryBookState: + New -(shelve)-> Available + Available -(reserve)-> OnHold + OnHold -(release)-> Available + Available -(checkout)-> CheckedOut + CheckedOut -(checkin)-> Available + + Once the classes are defined, then additional Python code can reference those + classes to add class attributes, instance methods, etc. + See the examples in examples/statemachine -- Added an example parser for the decaf language. This language was formerly - used for tutorial at Stanford University. +- Added an example parser for the decaf language. This language is used in + CS compiler classes in many colleges and universities. - Fixup of docstrings to Sphinx format, inclusion of test files in the source package, and convert markdown to rst throughout the distribution, great job @@ -80,6 +103,9 @@ Version 2.3.1 - January, 2019 please update to the latest version of setuptools. Plus overall project code cleanup (CRLFs, whitespace, imports, etc.), thanks Jon Dufresne! +- Fix bug in CaselessKeyword, to make its behavior consistent with + Keyword(caseless=True). Fixes Issue #65 reported by telesphore. + Version 2.3.0 - October, 2018 ----------------------------- |