aboutsummaryrefslogtreecommitdiffstats
path: root/libalee/types.hpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2023-03-11 07:36:11 -0500
committerClyne Sullivan <clyne@bitgloo.com>2023-03-11 07:36:11 -0500
commitbc3e952b487365fdf5e60e9fcfa0841c23972e30 (patch)
treecc53facc2a62db4dc93a25c772f521786305ead8 /libalee/types.hpp
parentf8270776e79f4d2edb7c2a19c1ecd3bf3b2bf153 (diff)
common error enum; eval to _ev
Diffstat (limited to 'libalee/types.hpp')
-rw-r--r--libalee/types.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/libalee/types.hpp b/libalee/types.hpp
index 5b577f2..0a7f7ee 100644
--- a/libalee/types.hpp
+++ b/libalee/types.hpp
@@ -32,6 +32,18 @@ using Func = void (*)(State&);
constexpr unsigned int MaxCellNumberChars = 6; // -32768
+enum class Error : int {
+ none = 0,
+ push,
+ pop,
+ pushr,
+ popr,
+ top,
+ pick,
+ exit,
+ noword
+};
+
struct Word
{
struct iterator;