Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix calculation of hardest_arg. | Jeremy Hylton | 2001-09-17 | 1 | -3/+3 |
| | | | | | | | | | The argument properties are ordered from easiest to hardest. The harder the arg, the more complicated that code that must be generated to return it from getChildren() and/or getChildNodes(). The old calculation routine was bogus, because it always set hardest_arg to the hardness of the last argument. Now use max() to always set it to the hardness of the hardest argument. | ||||
* | Revise implementations of getChildren() and getChildNodes(). | Jeremy Hylton | 2001-08-29 | 1 | -18/+112 |
| | | | | | | | | | | | | | | | | Add support for floor division (// and //=) The implementation of getChildren() and getChildNodes() is intended to be faster, because it avoids calling flatten() on every return value. But it's not clear that it is a lot faster, because constructing a tuple with just the right values ends up being slow. (Too many attribute lookups probably.) The ast.txt file is much more complicated, with funny characters at the ends of names (*, &, !) to indicate the types of each child node. The astgen script is also much more complex, making me wonder if it's still useful. | ||||
* | Generate correct reprs for Mul, Add, etc. | Jeremy Hylton | 2001-08-18 | 1 | -0/+2 |
| | |||||
* | Fix typo in astgen script | Jeremy Hylton | 2001-08-14 | 1 | -1/+1 |
| | |||||
* | Add getChildNodes() method to Node | Jeremy Hylton | 2001-08-14 | 1 | -0/+2 |
| | |||||
* | Support for generation of ast.py from simple description of node | Jeremy Hylton | 2000-10-25 | 1 | -0/+182 |
structure (ast.txt). Usage is python astgen.py > ast.py. |