was bedeutet "/" bei flex?
-
Hallo was genau bedeutet dieser obiuge ausdruck beio flex?
Sei z.B. r/s gegeben.
Bedeutet dies, dass ab r alle Zeichen gelesen werden bis ein s kommt?
Vieln dank
-
rtfm?
r/s an r but only if it is followed by an s. The text matched by s is included when determining whether this rule is the "longest match", but is then returned to the input before the action is executed. So the action only sees the text matched by r. This type of pattern is called trailing context". (There are some combinations of r/s that flex cannot match correctly; see notes in the Deficiencies / Bugs section below regarding "dangerous trailing context".)