You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think so. In the case where the grammar parses successfully and a single parse is returned, the root element is determined by the users grammar. In the first example, the root element is ixml because that's the root element in the ixml grammar. In the third example, I added ixml because the parse failed. In the sixth example, I added ixml because the user asked for multiple parses. On further thought, the step should probably just return a sequence of results in that case.
I think that the principle of least surprise (POLA) enforce the idea that the output should be consistent whatever the context we're in
At the moment, the specification as it is gives different ixml or no wrapper on different context
I would recommend that example 2, 4 and 5 to add a wrapper to avoid surprises
The text was updated successfully, but these errors were encountered: