diff options
author | Benji Dial <benji@benjidial.net> | 2023-06-20 03:48:50 -0400 |
---|---|---|
committer | Benji Dial <benji@benjidial.net> | 2023-06-20 03:48:50 -0400 |
commit | 1940ef130528e58cdfe0dd1589091947f6d8b8c7 (patch) | |
tree | 156378cbfa060dcae4973a538c0f3237b9dfc1ca /include | |
parent | d24a732c772b40f804403ab5758f33f74b2eb6ed (diff) | |
download | lib94-1940ef130528e58cdfe0dd1589091947f6d8b8c7.tar.gz |
rewrite compiler again, bringing more in line with standard, and add readme
Diffstat (limited to 'include')
-rw-r--r-- | include/lib94/lib94.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
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<warrior *> load_warrior(const std::filesystem::path &from); void clear_core(const instruction &background); void clear_core_random(); |