Closed sstiller closed 5 years ago
Well, an empty raise is not allowed, since the event attribute is required. Ref https://www.w3.org/TR/scxml/#raise
So I guess it is okay that the parser aborts because it is an error in the document. But of course the error message could be better.
What do you think?
You are right, I didn't check the standard. Better messages are really useful (I needed to look into the scxmlcc source code to find the reason). Like in #62 it happens when using the Qt Creator.
Hmm. If qt creates such 'raise's, maybe it would be better to make it a warning instead.
It can be fixed using the qt creator. A warning is not really necessary.
fixed with a meaningful error message
If empty
<raise/>
actions exist in the document, scxmlcc gives up:error: parse_raise: No such node (<xmlattr>)
The same problem seems to exist for other elements, too. See also #62Example: