Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] JavaCC and the JJ file.

There are quite a few things that the current parser doesn't pick up.  The
one that is bugging me lately is the WINAPI and friends macros that blow up
the function they are modifying.  We need to get something in for the April
delivery (can I call this 1.0.2?) to bring the quality level of the outline
view a bit higher that what we've got.

Alain, since we're not scheduled to release the new parser until after
April, would you be interested in committing the work you have done with the
old IBM parser?  Or fire a patch at me so that I could polish it off and get
it in?  Then, we should also be able to add in the K&R param decls as well
(hopefully easy...). 

Cheers,
Doug Schaefer
Senior Staff Software Engineer
Rational Software - IBM Software Group
Ottawa (Kanata), Ontario, Canada
 

-----Original Message-----
From: Chris Songer [mailto:songer@xxxxxxxxxxxxx] 
Sent: Monday, February 24, 2003 12:02 PM
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] JavaCC and the JJ file.


Hi,

I suspect that the new parser effort is removing the need for it, but where 
is the jj file that produced the cpp parser? I can't find it anywhere.

As most of you probably know, old style K&R function definitions stop the 
ModelBuilder. (See attached example and note the lack of a main() node in 
the outline view) and I'm motivated to fix it on 1.0.1 if it's 
straightforward to do. It's clearly not straightforward without the 
original source file. I'm guessing it was based on something like: 
http://www.cobase.cs.ucla.edu/pub/javacc/CPLUSPLUS.jj but it was clearly 
modified to work properly with the rest of cdt.

Anyone happen to know where in the repository this is? I did not see it in 
the places that were obvious to me. If anyone knows the "right" version of 
JavaCC, that would be lovely to know too.

Thanks!
-Chris

#include <stdio.h>

int foo(a, b)
int a;
int b;
{

}

int main( int argc, char **argv )
{
printf( "hello world\n" );
}

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top