initial support for nil, make-list

unfinished, but usable.. still 0 is false in libs and code
This commit is contained in:
2021-03-01 18:26:58 +01:00
parent 46b29fc229
commit 8586a66285
6 changed files with 55 additions and 13 deletions

6
ml.h
View File

@@ -98,6 +98,9 @@ public:
// Construct a string
static MlValue string(const std::string &s);
// Construct a nil
static MlValue nil();
// Construct a lambda function
MlValue(const std::vector<MlValue> &params, MlValue ret, MlEnvironment const &env);
@@ -197,7 +200,8 @@ private:
STRING,
LAMBDA,
BUILTIN,
UNIT
UNIT,
NIL
} type;
union {