summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-08-21 22:41:20 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-08-21 22:41:20 (GMT)
commitb3c7a989ebf1ac9342d17a1130e99663d7471cdf (patch)
treedf15fd4b243ff5733f7a3f9aec4a3bc131481b96 /apps
parentf7ad82f972bf46571bb5229205f877f8ab31069d (diff)
downloaduscxml-b3c7a989ebf1ac9342d17a1130e99663d7471cdf.zip
uscxml-b3c7a989ebf1ac9342d17a1130e99663d7471cdf.tar.gz
uscxml-b3c7a989ebf1ac9342d17a1130e99663d7471cdf.tar.bz2
More issues being idenified via interpreter.validate()
Diffstat (limited to 'apps')
-rw-r--r--apps/uscxml-browser.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/uscxml-browser.cpp b/apps/uscxml-browser.cpp
index 1b9df1b..0e7b22b 100644
--- a/apps/uscxml-browser.cpp
+++ b/apps/uscxml-browser.cpp
@@ -182,6 +182,15 @@ int main(int argc, char** argv) {
try {
Interpreter interpreter = Interpreter::fromURI(documentURL);
if (interpreter) {
+
+ if (options.checking) {
+ std::list<InterpreterIssue> issues = interpreter.validate();
+ for (std::list<InterpreterIssue>::iterator issueIter = issues.begin(); issueIter != issues.end(); issueIter++) {
+ std::cout << *issueIter << std::endl;
+ }
+
+ }
+
interpreter.setCmdLineOptions(currOptions->additionalParameters);
interpreter.setCapabilities(options.getCapabilities());