Reputation: 1
I want to take a program as input and I want to find out:
If I calculate this I can do my project. This is the basic for me.
Can any one help me with this by giving guidelines or anything? I am trying this but I am not getting anywhere.
For example:
#include<stdio.h>
void main()
{
int a,b,c;
float d;
printf("enter a,b,c value");
scanf("%d %d %d",&a,&b,&c);
d=a+b+c;
getch();
}
Through files I will take the above program as input and I want to count identifiers. For example:
a
, b
, c
, and d
).We can do this manually but I want to do the calculation in a program, how to count the identifiers, inputs, outputs, etc.
Upvotes: 0
Views: 1614
Reputation: 94870
Have a look at this thread : Java Programming - Parse "C" code using Java.
It talks about using
Upvotes: 1