Initial commit: Klammertext source distribution
Curated source subset assembled by klammertext-dev's doc/make_dist.sh: the Klammermachine (mac), the Standard Klammer Set (sks), the commands (com), editor plugins and install guides (doc), a test subset (tst), and lib/bin placeholders. Builds with 'make -C com'. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
30
mac/eval.h
Normal file
30
mac/eval.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "machine.h"
|
||||
#include "katom.h"
|
||||
|
||||
enum class eval_t {
|
||||
shell,
|
||||
python,
|
||||
cpp,
|
||||
};
|
||||
|
||||
class Eval
|
||||
{
|
||||
public:
|
||||
explicit Eval(Machine& machine, Locator loc)
|
||||
: m_machine(machine),
|
||||
m_loc(loc)
|
||||
{};
|
||||
Eval(const Eval&) = delete;
|
||||
Eval& operator=(const Eval&) = delete;
|
||||
//~Eval_cpp();
|
||||
|
||||
std::vector<Katom> eval(
|
||||
std::vector<Katom>::iterator begin, std::vector<Katom>::iterator end);
|
||||
|
||||
Machine m_machine;
|
||||
Locator m_loc;
|
||||
};
|
||||
Reference in New Issue
Block a user