mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-01 22:02:45 +01:00
[executable semantics] Minimal cxx parser (#363)
Makes a minimal transition to using C++ in the parser.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
// Writes a syntax error diagnostic, containing message, for the input file at
|
||||
// the given line, to standard error.
|
||||
auto Carbon::ParseAndLexContext::PrintDiagnostic(const char* message,
|
||||
auto Carbon::ParseAndLexContext::PrintDiagnostic(const std::string& message,
|
||||
int line_num) -> void {
|
||||
std::cerr << inputFileName << ":" << line_num << ": " << message << std::endl;
|
||||
exit(-1); // TODO: do we really want this here? It makes the comment and the
|
||||
|
||||
Reference in New Issue
Block a user