Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[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" );
}



Back to the top