mirror of
https://github.com/kanaka/mal.git
synced 2024-09-19 17:47:53 +03:00
8a19f60386
- Reorder README to have implementation list after "learning tool" bullet. - This also moves tests/ and libs/ into impls. It would be preferrable to have these directories at the top level. However, this causes difficulties with the wasm implementations which need pre-open directories and have trouble with paths starting with "../../". So in lieu of that, symlink those directories to the top-level. - Move the run_argv_test.sh script into the tests directory for general hygiene.
33 lines
802 B
C++
33 lines
802 B
C++
#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;
|
|
typedef RefCountedPtr<malEnv> malEnvPtr;
|
|
|
|
// step*.cpp
|
|
extern malValuePtr APPLY(malValuePtr op,
|
|
malValueIter argsBegin, malValueIter argsEnd);
|
|
extern malValuePtr EVAL(malValuePtr ast, malEnvPtr env);
|
|
extern malValuePtr readline(const String& prompt);
|
|
extern String rep(const String& input, malEnvPtr env);
|
|
|
|
// Core.cpp
|
|
extern void installCore(malEnvPtr env);
|
|
|
|
// Reader.cpp
|
|
extern malValuePtr readStr(const String& input);
|
|
|
|
#endif // INCLUDE_MAL_H
|