'Consume a string of consecutive spaces.
Returns the number of spaces found. (Does not update self.offset).'

def parse_whitespace(self):

    assert (self.formula[self.offset] == '    ')
    self.items.append(Token('    ', Token.WSPACE))
    return self.WSPACE_RE.match(self.formula[self.offset:]).end()
