Re: [Jastadd] syntax for rewrites?

From: Bill Janssen <janssen_at_parc.com>
Date: Fri, 26 Oct 2012 11:19:36 -0700

Görel Hedin <gorel_at_cs.lth.se> wrote:

> Thanks for the remark, Bill. There are a few more things lacking in
> the documentation as well, and we will update it some time soon
> hopefully...

So, what does "in" in this context actually do?

And, while I'm asking questions, what is the execution context of a
rewrite block? Is the 'A' instance accessible? If so, how?

Bill

>
> --Görel
>
> 26 okt 2012 kl. 01:26 skrev Bill Janssen:
>
> > Bill Janssen <janssen_at_parc.com> wrote:
> >
> >> I see that JModelica uses an undocumented JastAdd rewrite syntax of the
> >> form
> >>
> >> for NODETYPE1 in NODETYPE2.METHOD() {
> >> ...
> >> }
> >
> > Sorry, I mis-typed that. Should read
> >
> > rewrite NODETYPE1 in NODETYPE2.METHOD() {
> > ...
> > }
> >
> >> This use of an "in" keyword doesn't seem to be documented in the JastAdd
> >> reference manual. Could that be updated to reflect this?
> >>
> >> Thanks.
> >>
> >> Bill
> > _______________________________________________
> > JastAdd mailing list
> > JastAdd_at_cs.lth.se
> > https://mail1.cs.lth.se/cgi-bin/mailman/listinfo/jastadd
>
> _______________________________________________
> JastAdd mailing list
> JastAdd_at_cs.lth.se
> https://mail1.cs.lth.se/cgi-bin/mailman/listinfo/jastadd
Received on Fri Oct 26 2012 - 20:19:46 CEST

This archive was generated by hypermail 2.3.0 : Wed Apr 16 2014 - 17:19:06 CEST