[racket-dev] How to represent the startline in Lexer SRE Operators ??
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.
HTH,
N.
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