Add GCC backend glue

This commit is contained in:
2024-12-27 10:51:46 +01:00
parent 40306ac986
commit 51f5603c4a
24 changed files with 601 additions and 329 deletions

View File

@@ -1,3 +1,6 @@
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at http://mozilla.org/MPL/2.0/.
#include "elna/source/driver.h"
namespace elna
@@ -13,7 +16,7 @@ namespace source
}
syntax_error::syntax_error(const std::string& message,
const std::filesystem::path& input_file, const yy::location& location)
const char *input_file, const yy::location& location)
: error(input_file, make_position(location)), message(message)
{
}
@@ -23,7 +26,7 @@ namespace source
return message;
}
driver::driver(const std::filesystem::path& input_file)
driver::driver(const char *input_file)
: input_file(input_file)
{
}