Parsing a backslash


I'm building a lexer to parse Zinc and MiniZinc files. In these files the wedge (/) and vee (\/) are represented by slashes and backslashes. The lexer however reports in the case of \/ this as an "OTHER" and "OPDIV" character. I tried solving this problem by replacing \ by the hexadecimal code of a backslash, but this method failed to give the correct result. I can't find anything in the manual describing this problem. Is it a bug or dit I do something wrong?

file attachments


talweiss1982 wrote Jul 30, 2015 at 4:24 PM

I'm having the same issue when using unicode mode.
It seems GPLEX is ignoring '\'
If you have found a solution for this problem please email me at tal@ayende.com