2015-03-26 14:25:50 +03:00
|
|
|
#ifndef INCLUDE_MAL_H
|
|
|
|
#define INCLUDE_MAL_H
|
|
|
|
|
|
|
|
#include "Debug.h"
|
|
|
|
#include "RefCountedPtr.h"
|
|
|
|
#include "String.h"
|
|
|
|
#include "Validation.h"
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class malValue;
|
|
|
|
typedef RefCountedPtr<malValue> malValuePtr;
|
|
|
|
typedef std::vector<malValuePtr> malValueVec;
|
2015-03-27 01:04:35 +03:00
|
|
|
typedef malValueVec::iterator malValueIter;
|
|
|
|
|
|
|
|
class malEnv;
|
2015-03-27 03:03:28 +03:00
|
|
|
typedef RefCountedPtr<malEnv> malEnvPtr;
|
2015-03-26 14:25:50 +03:00
|
|
|
|
|
|
|
// step*.cpp
|
2015-03-27 01:04:35 +03:00
|
|
|
extern malValuePtr APPLY(malValuePtr op,
|
|
|
|
malValueIter argsBegin, malValueIter argsEnd,
|
2015-03-27 03:03:28 +03:00
|
|
|
malEnvPtr env);
|
|
|
|
extern malValuePtr EVAL(malValuePtr ast, malEnvPtr env);
|
|
|
|
extern String rep(const String& input, malEnvPtr env);
|
|
|
|
|
|
|
|
// Core.cpp
|
|
|
|
extern void installCore(malEnvPtr env);
|
2015-03-26 14:25:50 +03:00
|
|
|
|
|
|
|
// Reader.cpp
|
|
|
|
extern malValuePtr readStr(const String& input);
|
|
|
|
|
|
|
|
#endif // INCLUDE_MAL_H
|