Ignore:
Timestamp:
Oct 25, 2009, 7:26:36 AM (10 years ago)
Author:
cameron
Message:

Extend PyBit? to include loops of form while B: S

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/parabix2.py

    r315 r322  
    166166        CtCDPI_Cursor = bitutil.ScanThru(CtCDPI_Cursor, CtCDPI_scan)
    167167        CtCDPI_Cursor &= EOF_mask
    168         while CtCDPI_Cursor > 0:
     168        while CtCDPI_Cursor:
    169169                CtCDPI_starts |= CtCDPI_Cursor
    170170                PI_Cursor = CtCDPI_Cursor & lex.PI_start
     
    456456        # iterations is the maximum number of attributes found in any one
    457457        # start tag, plus one.
    458         while AttNameStart > 0:
     458        while AttNameStart:
    459459                AttNameStarts |= AttNameStart
    460460                AttNameFollow = bitutil.ScanThru(AttNameStart, lex.NameScan)
Note: See TracChangeset for help on using the changeset viewer.