diff options
| author | hachem <im@hachem.wtf> | 2026-09-19 11:35:28 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-09-19 11:35:28 +0200 |
| commit | dd52ccd9319aa847cddc486519075b806c9e9092 (patch) | |
| tree | df290f8972aa6eb164fad7258002ccb95cf648bf /eval.h | |
| parent | 768bbdd137f5b205e4282bd79572681aef4514e3 (diff) | |
feat: emmit a decltype of a difference
Diffstat (limited to 'eval.h')
| -rw-r--r-- | eval.h | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -0,0 +1,23 @@ +#pragma once + +#include "ast.h" + +enum TypeKind +{ + KIND_VOID, + KIND_VALUE +}; + +struct Type +{ + enum TypeKind kind; + long number; +}; + +enum RunStatus +{ + RUN_DONE, + RUN_FAILED +}; + +enum RunStatus execute(const struct Node* statement); |
