Changeset 546


Ignore:
Timestamp:
Jul 28, 2010, 6:41:02 PM (9 years ago)
Author:
cameron
Message:

Restructure errors in parse_refs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/parabix2.py

    r528 r546  
    277277        # Error checks
    278278        # At least one digit required for DecRef, one hex digit for HexRef.
    279         Error = DecRef3 &~ lex.Digit
    280         Error |= HexRef4 &~ lex.Hex
     279        error1 = DecRef3 &~ lex.Digit
     280        error2 = HexRef4 &~ lex.Hex
    281281        # Semicolon terminator required (also covers unterminated at EOF).
    282         Error |= (GenRefEnds | DecRefEnds | HexRefEnds) &~ lex.Semicolon
     282        error3 = (GenRefEnds | DecRefEnds | HexRefEnds) &~ lex.Semicolon
    283283        CallOuts.GenRefs = GenRefEnds - GenRef2
    284284        CallOuts.DecRefs = DecRefEnds - DecRef3
     
    288288        # single character).
    289289        CallOuts.delmask = (GenRefEnds | DecRefEnds | HexRefEnds) - lex.RefStart
    290         CallOuts.error = Error
     290        CallOuts.error = error1 | error2 | error3
    291291        return CallOuts
    292292
Note: See TracChangeset for help on using the changeset viewer.