1
1
mirror of https://github.com/kanaka/mal.git synced 2024-11-10 12:47:45 +03:00
mal/cpp/MAL.h

33 lines
791 B
C
Raw Normal View History

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;
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
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