[squeak-dev] Re: Can i has underscores? :)
Igor Stasenko
siguctua at gmail.com
Thu Apr 15 11:00:23 UTC 2010
btw, i think that UnderscoreFilter
should be demoted from being a subclass of Stream,
since i found that it won't work with parser anyways.
Parser using an evil skip: -1, skip: -2
when parsing numbers, and it won't go well with filtered input.
Another alternative is to alter the parser to not use a position-able protocol,
only #next and #peek (and maybe skip:, but only with a positive offsets).
I think it would be good to assume for parser, that source stream may
not support positioning.
--
Best regards,
Igor Stasenko AKA sig.
More information about the Squeak-dev
mailing list
|