Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] query regarding parse actions

Currently this is not easy to do.  You would have to modify the
implementation of the parser itself, or subclass it (which wouldn't be
terribly pretty either)  in order to do this as things stand now.

We are experimenting with using generated parsers that are generated from a
grammar.  This would make what you want to do more easily possible.  That
work should start appearing in CDT 4.0.

===========================

Chris Recoskie
Team Lead, IBM CDT Team
IBM Toronto
http://www.eclipse.org/cdt



                                                                           
  From:   "chinmay narayan" <chinu.pandey@xxxxxxxxx>                       
                                                                           
  To:     cdt-dev@xxxxxxxxxxx                                              
                                                                           
  Date:   30/11/2006 08:06 AM                                              
                                                                           
  Subject [cdt-dev] query regarding parse actions                          
  :                                                                        
                                                                           




Hi all,
is it possible to extend the actions that are done while parsing the
language through CDT parser. What i mean is, Parser.parse function
continuosly reads the token and build the AST correspondingly.. i want
to add some other work , is it possible to extend the actions taken by
the Parser? is it possible to do without changing the parser class as
such..? or do i need to implement some base class?

plz guid me..
regards
chinmay
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev




Back to the top