Quote from documentation for dot regex: "It means any character except ‘\n’" (in lex it was except "\n" and "\r"). Anyway, try to add 2 rules -- with dot and "\n". Gplex will display info, that dot rule always overrides "\n".
Comments: ** Comment from web user: k_john_gough **
Comments: ** Comment from web user: k_john_gough **
Hi macias
Cannot reproduce the violation. Can you give an example please. I have a lex file with just two rules
%%
\n Blah1;
. Blah2;
%%
this gives no diagnostic and produces correct scanning tables.
Lex lookalikes vary in their treatment of '.'
I chose the minimal and oldest tradition. However, no traditional meaning is adequate for Unicode scanners. I encourage the use of the set
DotChar [^\r\n\u0085\u2828\u2029]
Even for ascii scanners I usually define
DotChr [^\r\n]