summaryrefslogtreecommitdiffstats
path: root/test/src/test-execution.cpp
blob: 272ce4145301c25c31de219097caafea420a3844 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "uscxml/Interpreter.h"

int main(int argc, char** argv) {
	if (argc != 2) {
		std::cerr << "Expected path to test-execution.scxml" << std::endl;
		exit(EXIT_FAILURE);
	}

	using namespace uscxml;
	using namespace Arabica::DOM;
	using namespace Arabica::XPath;

	Interpreter* interpreter = Interpreter::fromURI(argv[1]);
	interpreter->dump();
	interpreter->interpret();
}