var found = "";
- while (!stream.lookEOF() && Lang.isNumber(found+stream.look())){
+ while (!stream.lookEOF() && Lang.isNumber(found+(string)stream.look())){
found += stream.next();
}
/**
@returns {Boolean} Was the token found?
*/
- public bool read_hex (TokenStream stream, TokenArray tokens)
+ public bool read_hex (TextStream stream, TokenArray tokens)
{
var found = stream.next(2);
while (!stream.lookEOF()) {
- if (Lang.isHexDec(found) && !Lang.isHexDec(found+stream.look())) { // done
+ if (Lang.isHexDec(found) && !Lang.isHexDec(found+(string)stream.look())) { // done
tokens.push(new Token(found, "NUMB", "HEX_DEC", this.line));
return true;
}