[racket-dev] How to represent the startline in Lexer SRE Operators ??

From: Noel Welsh (noelwelsh at gmail.com)
Date: Mon Feb 7 07:44:18 EST 2011

I don't think you can do with just the lexer (it has been a while
since I used it). I suggest representing newlines in your AST, and
using the parser to deal with newline + whatever tokens in an
appropriate way.


On Thu, Jan 27, 2011 at 6:45 PM, jenny sun
<jenny.sun.jenny.sun at gmail.com> wrote:
> Hi, does anybody know how to represent the startline with whitespace,
> in lex, we can write, means that I only match the spaces from the start
> line...
> ^[ ]*
> But, there is no ^ operator in Lexer SRE Operators ???
> Thanks
> --jenny

Posted on the dev mailing list.