Quantcast
Channel: gplex Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 33

Commented Issue: Dot rule violates lex syntax and own documentation [11310]

$
0
0
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 **

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]


Viewing all articles
Browse latest Browse all 33

Trending Articles