xo-interpreter2: streamline setup

This commit is contained in:
Roland Conybeare 2026-03-16 14:28:27 -05:00
commit 9321b57adb
9 changed files with 115 additions and 188 deletions

View file

@ -0,0 +1,27 @@
/** @file SetupInterpreter2.hpp
*
* @author Roland Conybeare, Mar 2026
**/
#pragma once
#include "PrimitiveRegistry.hpp"
#include <xo/alloc2/Collector.hpp>
namespace xo {
namespace scm {
struct SetupInterpreter2 {
public:
using ACollector = xo::mm::ACollector;
public:
static bool register_facets();
static bool register_types(obj<ACollector> gc);
static bool register_primitives(obj<ARuntimeContext> rcx,
InstallSink sink,
InstallFlags flags);
};
}
}
/* end SetupInterpreter2.hpp */

View file

@ -1,15 +0,0 @@
/** @file interpreter2_register_facets.hpp
*
* @author Roland Conybeare, Feb 2026
**/
#pragma once
namespace xo {
namespace scm {
/** Register interpreter2 (facet,impl) combinations with FacetRegistry **/
bool interpreter2_register_facets();
}
}
/* end interpreter2_register_facets.hpp */

View file

@ -1,22 +0,0 @@
/** @file interpreter2_register_primitives.hpp
*
* @author Roland Conybeare, Mar 2026
**/
#pragma once
#include "PrimitiveRegistry.hpp"
#include <xo/alloc2/Collector.hpp>
namespace xo {
namespace scm {
/** Register primitive-factories **/
bool interpreter2_register_primitives(obj<ARuntimeContext> rcx,
//xo::mm::AAllocator> gc,
//StringTable * stbl,
InstallSink sink,
InstallFlags flags);
}
}
/* end interpreter2_register_primitives.hpp */

View file

@ -1,17 +0,0 @@
/** @file interpreter2_register_types.hpp
*
* @author Roland Conybeare, Dec 2025
**/
#pragma once
#include <xo/alloc2/Collector.hpp>
namespace xo {
namespace scm {
/** Register interpreter2 (facet,impl) combinations with FacetRegistry **/
bool interpreter2_register_types(obj<xo::mm::ACollector> gc);
}
}
/* end interpreter2_register_types.hpp */