[executable semantics] Minimal cxx parser (#363)

Makes a minimal transition to using C++ in the parser.
This commit is contained in:
Dave Abrahams
2021-03-09 20:46:52 -08:00
committed by GitHub
parent 07a37933c6
commit 436a9dda79
5 changed files with 91 additions and 92 deletions
@@ -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