Nullable structure in a repetition or option |
Top Previous Next |
Messages > Nullable structure in a repetition or option
The meaning of a "(...)+" repeat or a "(...)*" repeat or an "(...)?" onption isn't clear if it contains a nullable structure.
Examplee:
( "a"? )+ "b"
The structure "( "a"? )+" could be as interpreted as nullable. An occurrence of b without previous "a" would be accepted. But you could argue too that the loop has to be passed once at least.
( "a"* {{iCount++;}} )* "b"
How often should iCount be incremented for several "a" in the input? Thar's not clear! |
This page belongs to the TextTransformer Documentation |
Home Content German |