-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBOXVM.cpp
More file actions
38 lines (32 loc) · 757 Bytes
/
BOXVM.cpp
File metadata and controls
38 lines (32 loc) · 757 Bytes
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
27
28
29
30
31
32
33
34
35
36
37
38
/*
* PROGRAM DESCRIPTION
*
* @program BOX programming language virutal machine
* @file BOXVM.cpp
* @purpose An abstract virtual machine that interprets programs written in an executable .box file format.
*
* @author Duje Senta
* @company Faculty of Electrical Engineering, Mechanical Engineering and Naval Architecture, Split
* @version 0.8 13/06/2016
*
*/
//#define PRINT_DEBUG_MODE
#include "BOXVM.h"
#include "TestBox.h"
#include "BoxTrace.h"
int main(int argc, char *argv[])
{
ADD_TRACE("MEMORY_COLLECTOR");
ADD_TRACE("EXECUTE");
ADD_TRACE("BOX_PROGRAM");
BOXVM_PATH = argv[0];
if (argc == 1)
{
Testing();
}
else
{
runBox(argc, argv);
}
return programMonitor.getStatus();
}