[racket] How write regexp for lexer

From: Evgeny Odegov (oev-racket at sibmail.com)
Date: Wed Sep 25 07:09:57 EDT 2013

maybe this short example could help


> Hello. I need write rule for lexer for recognize comment which begin from
> first column of line.
> I have next regexp for comment (:seq "//" (:* (:~ CR LF))), aftrer add
> cr/lf to begin of expression i write (:seq  LineTerminator (:* (:or
> #\space TAB FF)) "//" (:* (:~ CR LF))), but this regexp -first eat
> LineTerninator, second - don't recognize comment if it first in file
> Help me, please, write this rule
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users

Posted on the users mailing list.