E&S CVS Commit: PEAK-Rules - Determine sequence (and therefore definition precedence) at

pje at eby-sarna.com pje at eby-sarna.com
Wed Jan 16 22:33:38 EST 2008


Author: pje
Date: Wed Jan 16 22:33:36 2008
New Revision: 2489

URL: http://svn.eby-sarna.com?rev=2489&view=rev
Log:
Determine sequence (and therefore definition precedence) at
rule *parsing* time, rather than rule *addition* time.  This
ensures that lexical order holds within class bodies, and
also prevents confusion when a ruleset is populated using
data from other rulesets.  (i.e. rulesets no longer generate
sequence numbers.)  Also, created a ParseContext struct to
simplify the signature of the unwieldy parse_rule() function.

Modified:
    PEAK-Rules/DESIGN.txt
    PEAK-Rules/peak/rules/core.py
    PEAK-Rules/peak/rules/predicates.py
    PEAK-Rules/test_rules.py




More information about the source-changes mailing list