{
string found = "";
- while (!stream.lookEOF() && Lang.punc(found + (string)stream.look()).length > 0) {
+ while (!stream.lookEOF() && Lang.punc(found + stream.look().to_string()).length > 0) {
found += stream.next();
}
(stream.look() == '<' && stream.look(1) == '!' && stream.look(2) == '-' && stream.look(3) == '-' && (""!=(found=stream.next(4))))
) {
var line = this.line;
- while (!stream.lookEOF() && !Lang.isNewline((string)stream.look())) {
+ while (!stream.lookEOF() && !Lang.isNewline(stream.look().to_string())) {
found += stream.next();
}
//if (!stream.lookEOF()) { // what? << eat the EOL?
while (!stream.lookEOF()) {
if (stream.look() == '\\') {
- if (Lang.isNewline((string)stream.look(1))) {
+ if (Lang.isNewline(stream.look(1).to_string())) {
do {
stream.next();
- } while (!stream.lookEOF() && Lang.isNewline((string)stream.look()));
+ } while (!stream.lookEOF() && Lang.isNewline(stream.look().to_string()));
str += "\\\n";
}
else {
var found = "";
- while (!stream.lookEOF() && Lang.isNumber(found+(string)stream.look())){
+ while (!stream.lookEOF() && Lang.isNumber(found+stream.look().to_string())){
found += stream.next();
}
var found = stream.next(2);
while (!stream.lookEOF()) {
- if (Lang.isHexDec(found) && !Lang.isHexDec(found+(string)stream.look())) { // done
+ if (Lang.isHexDec(found) && !Lang.isHexDec(found+stream.look().to_string())) { // done
tokens.push(new Token(found, "NUMB", "HEX_DEC", this.line));
return true;
}
if (stream.look() == '/') {
regex += stream.next();
- while (GLib.Regex.match_simple("[gmi]", (string)stream.look())) {
+ while (GLib.Regex.match_simple("[gmi]", stream.look().to_string())) {
regex += stream.next();
}