summaryrefslogtreecommitdiff
path: root/runtime.h
blob: 1a49300639b18a67fbefe9328e6f68b94b63d185 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

#include <fstream>
#include <vector>
#include <string>

using namespace std;

struct Stackitem{
	bool isstr;
	string strval;
	int intval;

	Stackitem(void);
	Stackitem(int _i);
	Stackitem(const string &_s);
	Stackitem(const Stackitem&);
	Stackitem(Stackitem &&other);
	Stackitem& operator=(const Stackitem&);
	Stackitem& operator=(Stackitem &&other);
	explicit operator bool(void) const;
	bool operator==(const Stackitem &other) const;
};

vector<string> tokenise(istream &stream);
void run(vector<string> T);