error1 function
Implementation
void error1(Token token, String message) {
if (token.type == TokenType.EOF) {
report(token.line, "at end of '${token.sourceFile}'", message);
} else {
report(token.line, "at '${token.lexeme}' of '${token.sourceFile}'", message);
}
}