blob: 67d8708b2af91b976b8dbd1eacba324376e7e706 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "uscxml/Interpreter.h"
#include "uscxml/debug/SCXMLDotWriter.h"
#include <DOM/io/Stream.hpp>
int main(int argc, char** argv) {
if (argc != 2) {
std::cerr << "Expected path to scxml document" << std::endl;
exit(EXIT_FAILURE);
}
using namespace uscxml;
Interpreter* interpreter = Interpreter::fromURI(argv[1]);
//SCXMLDotWriter::toDot("output.dot", interpreter);
interpreter->interpret();
return EXIT_SUCCESS;
}
|