(* Just to test special cases: - a $ sign not followed by an ident is left as is, - a '\\' not preceding a $ sign or a '\\' is left as is, - if n '\\' precedes a $ sign then n - 1 '\\' are copied in the output, - Quid of of the sequence "\\\n" (backslash fby newline) used to mark a line continuation, and of the sequence "\\\\\n" (double backslash fby newline) used to get a '\\' character at the end of a line ? - Quid of more than two '\\' chars before an end of line char ? (A: neat result is one less '\\' char in the output, since the last 3 chars '\\' '\\' '\n' defines an escaped '\\' at the end of a line and thus are read as '\\' '\n'.) *) $ \begin{verbatim} (* More and more '\\' before a dolar sign. *) $ \$ \\$ \\\$ coucou $$ $ \ \ (* More and more '\\' before the end of line. *) toto \ tata \\ titi \\\ (* More and more '\\' before something else. *) foo \\bar bar \\\baz baz \\\\buz buz \\\\\biz (* Same enclosed in '\"' (i.e. inside strings). *) "\\" "\\$" (* Test passed successfully :) *)