diff options
Diffstat (limited to 'matlab/+types')
| -rw-r--r-- | matlab/+types/Function.m | 17 | ||||
| -rw-r--r-- | matlab/+types/MalException.m | 11 |
2 files changed, 28 insertions, 0 deletions
diff --git a/matlab/+types/Function.m b/matlab/+types/Function.m new file mode 100644 index 0000000..2f28368 --- /dev/null +++ b/matlab/+types/Function.m @@ -0,0 +1,17 @@ +classdef Function < handle + properties + fn + ast + env + params + is_macro = false + end + methods + function f = Function(fn, ast, env, params) + f.fn = fn; + f.ast = ast; + f.env = env; + f.params = params; + end + end +end diff --git a/matlab/+types/MalException.m b/matlab/+types/MalException.m new file mode 100644 index 0000000..1269a1d --- /dev/null +++ b/matlab/+types/MalException.m @@ -0,0 +1,11 @@ +classdef MalException < MException + properties + obj + end + methods + function exc = MalException(obj) + exc@MException('MalException:object', 'MalException'); + exc.obj = obj; + end + end +end |
