| OLD | NEW |
| 1 PLY (Python Lex-Yacc) Version 3.4 | 1 PLY (Python Lex-Yacc) Version 3.4 |
| 2 | 2 |
| 3 Copyright (C) 2001-2011, | 3 Copyright (C) 2001-2011, |
| 4 David M. Beazley (Dabeaz LLC) | 4 David M. Beazley (Dabeaz LLC) |
| 5 All rights reserved. | 5 All rights reserved. |
| 6 | 6 |
| 7 Redistribution and use in source and binary forms, with or without | 7 Redistribution and use in source and binary forms, with or without |
| 8 modification, are permitted provided that the following conditions are | 8 modification, are permitted provided that the following conditions are |
| 9 met: | 9 met: |
| 10 | 10 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 129 |
| 130 Special Note for PLY-3.0 | 130 Special Note for PLY-3.0 |
| 131 ======================== | 131 ======================== |
| 132 PLY-3.0 the first PLY release to support Python 3. However, backwards | 132 PLY-3.0 the first PLY release to support Python 3. However, backwards |
| 133 compatibility with Python 2.2 is still preserved. PLY provides dual | 133 compatibility with Python 2.2 is still preserved. PLY provides dual |
| 134 Python 2/3 compatibility by restricting its implementation to a common | 134 Python 2/3 compatibility by restricting its implementation to a common |
| 135 subset of basic language features. You should not convert PLY using | 135 subset of basic language features. You should not convert PLY using |
| 136 2to3--it is not necessary and may in fact break the implementation. | 136 2to3--it is not necessary and may in fact break the implementation. |
| 137 | 137 |
| 138 Example | 138 Example |
| 139 ======= | 139 ======= |
| 140 | 140 |
| 141 Here is a simple example showing a PLY implementation of a calculator | 141 Here is a simple example showing a PLY implementation of a calculator |
| 142 with variables. | 142 with variables. |
| 143 | 143 |
| 144 # ----------------------------------------------------------------------------- | 144 # ----------------------------------------------------------------------------- |
| 145 # calc.py | 145 # calc.py |
| 146 # | 146 # |
| 147 # A simple calculator with variables. | 147 # A simple calculator with variables. |
| 148 # ----------------------------------------------------------------------------- | 148 # ----------------------------------------------------------------------------- |
| 149 | 149 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 -- Dave | 262 -- Dave |
| 263 | 263 |
| 264 | 264 |
| 265 | 265 |
| 266 | 266 |
| 267 | 267 |
| 268 | 268 |
| 269 | 269 |
| 270 | 270 |
| 271 | 271 |
| OLD | NEW |