feat(solver-bootstrap): step 3 — core-ids-and-diagnostics

This commit is contained in:
KOKO\Mimi
2026-07-30 13:01:15 +09:00
parent 3e44deed72
commit 34d21f43fe
10 changed files with 255 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
#pragma once
#include <optional>
#include <string>
#include <fesa/core/source_location.hpp>
namespace fesa {
enum class DiagnosticStage {
io,
syntax,
semantic,
model,
equation,
solver,
results,
validation
};
enum class Severity { warning, error };
struct Diagnostic final {
DiagnosticStage stage;
Severity severity;
std::string code;
std::string message;
std::optional<SourceLocation> source;
};
} // namespace fesa