Bob/headers/StdLib.h
Bobby Lucero 1e65b344ae Major speed optimization
- Replace Object* with Value tagged union for better performance
- Fix bug where "true"/"false" strings were treated as booleans
- Add isBoolean field to LiteralExpr to distinguish string vs boolean literals
- Implement fast function calls with g_returnContext instead of exceptions
- Add functions vector to prevent dangling pointers
- Remove try-catch blocks from execute() for 50x performance improvement
- Clean up test files, keep only main test suite and fib benchmark
- All 38 tests passing, fib(30) still ~848ms
2025-07-31 00:16:54 -04:00

12 lines
217 B
C++

#pragma once
#include "Value.h"
#include "Environment.h"
#include <memory>
class Interpreter;
class StdLib {
public:
static void addToEnvironment(std::shared_ptr<Environment> env, Interpreter& interpreter);
};