[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: Parsing Specific Productions



Title: AW: Parsing Specific Productions

Hi,
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

===============================================================================
Thomas Leonhardt          email  leonhardt@informatik.tu-darmstadt.de
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
D-64283 Darmstadt         
Germany
===============================================================================
 

> -----Ursprungliche Nachricht-----
> Von: owner-sablecc-list@sable.mcgill.ca
> [mailto:owner-sablecc-list@sable.mcgill.ca]Im Auftrag von Patricio
> Salinas Caro
> Gesendet: Mittwoch, 23. Mai 2001 12:35
> An: sablecc-list@sable.mcgill.ca
> Betreff: Parsing Specific Productions
>
>
>
>
> Hello,
>
> 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.
>
>