Hi Tristan
Thank you for your answer. As I'm not expert in eclipse architecture, I would
like to get sure I've well understood how to customize doc2model :
You suggest me to add an extension that will in some way, understand a
multiline regex (or at least my particular multiline regex)...
The checker class would be called at each new paragraph, and the checker shall
remember, by any means the previous lines checked given the following
pseudocode :
let rx = my multiline regex expression
let nl = the newline extracted from the doc
let bf = a buffer for storing previous lines
if (buffer is empty) then
switch
case nl or part of nl match the entire rx
-> we store the matched string to output
case nl or part of nl match the beginning of rx
-> we store the matched string to bf
else
-> we drop the string
else //buffer not empty
switch
case (bf + nl) or (bf + first part of nl) match the entire rx
-> we store the matched string to the output
case (bf + nl) match the beginning of rx
-> we store the matched string to bf
else we drop the string
If that first pseudocode is clear for you, I might continue with the second
question :
How to know if a regex is partially matches a part of the text ?
-> with the regex java library it seems not possible (as far as I know,
but I may be wrong)
-> creating a checker specially for one particular regex, having it
cutted according to the different cases (one if buffer is empty, and one if
buffer is not empty)
Regards
Cédric Gava
_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users