AST representation and associated visitor

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

AST representation and associated visitor

Guillaume Larcheveque
Hello,

does someone has implemented an AST with PetitParser and then used the visitor pattern on it?

Thanks in advance.

--
Guillaume Larcheveque



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: AST representation and associated visitor

Tudor Girba-2
Of course :). Even multiple times.

But, why do you ask.

Cheers,
Doru


On Tue, Feb 21, 2012 at 10:20 AM, Guillaume Larcheveque
<[hidden email]> wrote:

> Hello,
>
> does someone has implemented an AST with PetitParser and then used the
> visitor pattern on it?
>
> Thanks in advance.
>
> --
> Guillaume Larcheveque
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>



--
www.tudorgirba.com

"Every thing has its own flow"
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: AST representation and associated visitor

Guillaume Larcheveque
Only to have an example and reuse it.

2012/2/21 Tudor Girba <[hidden email]>
Of course :). Even multiple times.

But, why do you ask.

Cheers,
Doru


On Tue, Feb 21, 2012 at 10:20 AM, Guillaume Larcheveque
<[hidden email]> wrote:
> Hello,
>
> does someone has implemented an AST with PetitParser and then used the
> visitor pattern on it?
>
> Thanks in advance.
>
> --
> Guillaume Larcheveque
>
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>



--
www.tudorgirba.com

"Every thing has its own flow"
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--
Guillaume Larcheveque



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: AST representation and associated visitor

Tudor Girba-2
You can find a quite nice example of this in the PetitSmalltalk package.

- PPSmalltalkGrammar holds the grammar
- PPSmalltalkParser holds the parser that populates the Refactoring browser

Another example can be found in the PetitSQLite.

Both of these are to be found in the latest Moose build.

Cheers,
Doru



On 21 Feb 2012, at 11:00, Guillaume Larcheveque wrote:

> Only to have an example and reuse it.
>
> 2012/2/21 Tudor Girba <[hidden email]>
> Of course :). Even multiple times.
>
> But, why do you ask.
>
> Cheers,
> Doru
>
>
> On Tue, Feb 21, 2012 at 10:20 AM, Guillaume Larcheveque
> <[hidden email]> wrote:
> > Hello,
> >
> > does someone has implemented an AST with PetitParser and then used the
> > visitor pattern on it?
> >
> > Thanks in advance.
> >
> > --
> > Guillaume Larcheveque
> >
> >
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
> >
>
>
>
> --
> www.tudorgirba.com
>
> "Every thing has its own flow"
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
>
> --
> Guillaume Larcheveque
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"The coherence of a trip is given by the clearness of the goal."




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev