initial support for nil, make-list
unfinished, but usable.. still 0 is false in libs and code
This commit is contained in:
6
ml.h
6
ml.h
@@ -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> ¶ms, MlValue ret, MlEnvironment const &env);
|
||||
|
||||
@@ -197,7 +200,8 @@ private:
|
||||
STRING,
|
||||
LAMBDA,
|
||||
BUILTIN,
|
||||
UNIT
|
||||
UNIT,
|
||||
NIL
|
||||
} type;
|
||||
|
||||
union {
|
||||
|
||||
Reference in New Issue
Block a user