Next / Previous / Contents / Shipman's homepage

74.16. BaseEncounter.tailColor(): Scan color-band tail

All the work is done by the ColorBandsField class. See Section 72.1, “ColorBandsField.scanField().

baseclasses.py
# - - -   B a s e E n c o u n t e r . t a i l C o l o r   - - -

    def tailColor(self, scan):
        '''Scan a color-band group.

          [ scan is a Scan object ->
              if scan starts with a color-band group ->
                scan  :=  scan advanced past it
                self.(COLOR_BANDS_ATTR)  :=  that group, uppercased
              else ->
                Log()  +:=  error message(s)
                raise SyntaxError ]
        '''
        ColorBandsField.scanField(self, scan, COLOR_BANDS_ATTR)