[nem-en] Re: [nem-feedback] Visual Studio 2005 VSIP package
Kamil Skalski
kamil.skalski at gmail.com
Tue Feb 14 21:53:02 CET 2006
> >
> The problem is that for example for the "}" token the LexerString gives
> me a token starting from
> the beginning of the line to the closing brace.
This is probably some kind of bug. Each token returned from
LexerString / LexerFile should have Location structure set exactly to
beginning of token (its first char) and its end.
All whitespaces should be ignored.
> While the PreParser
> gives me a BraceGroup.
> From this group I can calculate the span of the closing brace (assume
> LastChar-2 to LastChar-2).
Group token from PreParser should have Location set to beginning of
opening brace up to end of closing brace. So you could use something
like Beginning+(1 or 2) ---- End-(1 or 2)
> >
> > You should be able to look at for example BracesGroup's Location.Line
> > and Location.EndLine
> >
> > This will give you the way to skip the whole matching braces group.
> >
> >
> It was an old comment since then I realized that we shall not look at
> positions but only add groups to AuthoringSink.
>
If I only knew what AuthoringSink is ;)
--
Kamil Skalski
http://nazgul.omega.pl
More information about the devel-en
mailing list