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 <tudor(a)tudorgirba.com>
Of course :). Even multiple times.
But, why do you ask.
Cheers,
Doru
On Tue, Feb 21, 2012 at 10:20 AM, Guillaume Larcheveque
<guillaume.larcheveque(a)gmail.com> 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
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.tudorgirba.com
"Every thing has its own flow"
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
Guillaume Larcheveque
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
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."