I don't know if I got the point. But why don't you use
the DepthFirstVisitor, extend it with your own class which
only implements the visitor methods you're interessted in.
Thomas Leonhardt email firstname.lastname@example.org
TU Darmstadt WWW http://www.pi.informatik.tu-darmstadt.de
FG Praktische Informatik phone +49 / (0)6151 / 16 - 5313
Wilhelminenstr. 7 fax +49 / (0)6151 / 16 - 5472
> -----Ursprungliche Nachricht-----
> Von: email@example.com
> [mailto:firstname.lastname@example.org]Im Auftrag von Patricio
> Salinas Caro
> Gesendet: Mittwoch, 23. Mai 2001 12:35
> An: email@example.com
> Betreff: Parsing Specific Productions
> Does anyone knows how to parse an specific production instead
> of doing it
> for the whole grammar?
> I mean, let's take for instance the Java grammar, I would
> like to parse
> class files and also methods body separately. I know that is
> possible to
> do it in JavaCC (it is straight forward once you have your grammar)
> because you just call the method associated with the production, but I
> don't know how to do the same in SableCC.
> Is it clear what am asking for? I would appreciate any advice.
> Thanks in advance and Best Regards,
> Patricio Salinas
> ps: I read the documentation some time ago (the thesis report), and I
> don't remember anything related with that.