From 1940ef130528e58cdfe0dd1589091947f6d8b8c7 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Tue, 20 Jun 2023 03:48:50 -0400 Subject: rewrite compiler again, bringing more in line with standard, and add readme --- include/lib94/lib94.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'include') diff --git a/include/lib94/lib94.hpp b/include/lib94/lib94.hpp index 18f90b4..b3898d2 100644 --- a/include/lib94/lib94.hpp +++ b/include/lib94/lib94.hpp @@ -60,13 +60,11 @@ namespace lib94 { std::string instruction_to_string(const instruction &instr); struct compiler_exception : public std::exception { - unsigned line_number; + unsigned source_line_number; std::string message; }; warrior *compile_warrior(std::string source); - bool save_warrior(const warrior &w, const std::filesystem::path &to); - std::optional load_warrior(const std::filesystem::path &from); void clear_core(const instruction &background); void clear_core_random(); -- cgit v1.2.3