summaryrefslogtreecommitdiffstats
path: root/examples/cpp/library/lambdas/main.cpp
blob: 316576b1d2e194334fdc5544e8074cfc270c9922 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <iostream>
#include "uscxml/uscxml.h"

int main(int argc, char *argv[])
{
	if (argc < 2) {
		std::cerr << "Expected URL with SCXML document as first argument" << std::endl;
		return -1;
	}

	uscxml::Interpreter sc = uscxml::Interpreter::fromURL(argv[1]);
	uscxml::InterpreterState state;
	while ((state = sc.step()) != uscxml::USCXML_FINISHED) {
	}

	return 0;
}