Goose  Diff

Differences From Artifact [541c5193fd]:

  • File bs/lex/lexer.cpp — part of check-in [baf9721752] at 2019-08-19 13:43:31 on branch trunk —
    • Fixed many issues with compile time versus run time function invocations.
    • Improved some error messages.
    (user: achavasse size: 4657)

To Artifact [4c2d3f0039]:

  • File bs/lex/lexer.cpp — part of check-in [6c118e666d] at 2019-08-19 19:25:43 on branch trunk —
    • Factored escape sequence parsing out and made hex and octal literal also output correct UTF-8 sequences when used in strings.
    • Fixed lexer errors never being displayed if they happen during the compile-time execution attempt, during which diagnostics are silenced.
    (user: achavasse size: 4653)

190
191
192
193
194
195
196
197
198
199
200
        case ';':
            return readSemicolon( ls );
    }

    if( isOpFirstChar( c ) )
        return readOperatorIdentifier( ls );

    DiagnosticsManager::GetInstance().emitSyntaxErrorMessage(
        ls.toLoc(), "unrecognized token.", 0 );
    return nullopt;
}







|
|


190
191
192
193
194
195
196
197
198
199
200
        case ';':
            return readSemicolon( ls );
    }

    if( isOpFirstChar( c ) )
        return readOperatorIdentifier( ls );

    DiagnosticsManager::GetInstance().emitLexerErrorMessage(
        ls.toLoc(), "unrecognized token." );
    return nullopt;
}