Hello, I want to create given structure from any text file,
Which shows Function argument type, data type, list of variables used and defined, variable data type and whether they are local, global.
here is one .txt file, which contains C code into the file.
double PI_Regler_a(double a,double b, double c, double d, double e, double f)
x = (d*a) + (e*b) + (f*c);
So, How can I use textscan and regexp to get structure like
variables(1).name = 'a'
variables(1).dtype = 'double'
variable(1).type = 'local'
please help me... I need to know that how I can separate and get what I need by using regexp and inputparsing class.