progress on variables

This commit is contained in:
ame 2023-09-11 13:07:27 -05:00
parent fab0e9846c
commit 838148dc8e
3 changed files with 11 additions and 0 deletions

View File

@ -9,6 +9,9 @@
#include "interp.hh"
#include "state.hh"
#ifndef __builtins_cc
#define __builtins_cc
namespace builtin {
class builtin {
public:
@ -47,3 +50,5 @@ static std::map<std::string, builtin::builtin*> builtins = {
};
void ttest(lexi);
#endif

View File

@ -2,4 +2,8 @@
#include <vector>
#include <iostream>
#include "state.hh"
#ifndef __interp_cc
#define __interp_cc
void interp(std::vector<lexi>, state*);
#endif

View File

@ -4,6 +4,7 @@
#include <algorithm>
#include <variant>
#include <any>
#include "state.hh"
#ifndef __parser_cc
#define __parser_cc
@ -42,6 +43,7 @@ class lexi {
std::vector<object> args;
std::string format(int);
lexi gen_args(state*);
void clear();
};