[nem-en] Marcos and intelligence

Kamil Skalski kamil.skalski at gmail.com
Sun Oct 29 22:29:42 CET 2006


I added Location property to generated macros. After next bootstrap we
should be able to add Location to IMacro interface. I'm not sure how
the names are going to be translated though, because they come from
the other assembly, so for example location will return

Location (Location.GetFileIndex ("macros/core.n", 122, 33))

but it will be called during compilation of some other assembly
probably with different path root. So maybe translating it to full
patch will be necessary.

On 10/29/06, Michal Moskal <michal.moskal at gmail.com> wrote:
> On 10/23/06, Павел Блудов <pbludov at gmail.com> wrote:
> >
> > > The other solution would be enclose macro generated code in some kind
> > > of TExpr.MacroMarker(macro,expr). This would be removed by some later
> > > stage of the compiler (T2 or T3). I think this should be easy to
> > > implement.
> >
> > It would be very nice.
> > And it would be very helpful to have the Location property in the IMacro
> > interface like the IMember interface has.
>
> I finally got some time to do it (I mean enclosing, not Location in
> IMacro). It should work on trunk.
>
> --
>    Michał
>
> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en
>
>
>


-- 
Kamil Skalski
http://nazgul.omega.pl


More information about the devel-en mailing list