Next time post the error messages you are getting to help us out.
I found a few errors.
1) Some of the comments have a space between the / and the first *
This may just be because of the way you posted it, but make sure in your source file there is no space there.
2) In the transform function you have this "if (*s1 == '\')"
that should be '\\'
remember \ starts an escape char such as \n or \r.
Use \\ to get a single slash!