simple Flex program?

Alexandru <[email protected]> Tue, 18 Apr 2006 15:40:04 -0700 (PDT)
Newsgroups gmane.comp.lex.flex.general
Message-ID <[email protected]>
--===============0335490191==
Content-Type: multipart/alternative; boundary="0-2028625341-1145400004=:16522"
Content-Transfer-Encoding: 8bit

--0-2028625341-1145400004=:16522
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hi,
 I'm totally new to flex and just received a project that is due in a few days. I want to ask you if it is a hard one to solve and if anyone can give me some help. i'm guessing it is a prety standard one and maybe someone already has something similar.
 The project is something like this:
 Give one ore more C files.For each file generate a txt file containing the functions found in the C files and for each function : its type, its name, the nomber of parameters and their name.
 This is the example:
 
 #include <stdio.h>
 int suma(int v[], int n)
 { int suma = 0;
 for(int i = 0; i < n; i++) /* rebuild suma */ suma += v[i];
 return suma;
 }
 void main()
 {
 int a[] = {1, 2, 3}, i = 0;
 while (i < 3)
 {
 int s = suma(a, 3);
 printf(“%d \n”, s);
 i++;
 }
 }
 
 Output:
 function: int suma(int v[], int n)
 return type: int
 name: suma
 number of parameters: 2
 list of parameters: int v[], int n
 function: void main()
 return type: void
 name: main
 number of parameters: 0
 list of parameters: -
 
 So? Is it hard or has anyone done something like this already? Please send me , on this e-mail, any source examples taht might help me keeping in mind I have never seen a Flex source code :(
 Thanks a lot, 
 Alex
		
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
--0-2028625341-1145400004=:16522
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Hi,<br> I'm totally new to flex and just received a project that is due in a few days. I want to ask you if it is a hard one to solve and if anyone can give me some help. i'm guessing it is a prety standard one and maybe someone already has something similar.<br> The project is something like this:<br> Give one ore more C files.For each file generate a txt file containing the functions found in the C files and for each function : its type, its name, the nomber of parameters and their name.<br> This is the example:<br> <br> #include &lt;stdio.h&gt;<br> int suma(int v[], int n)<br> { int suma = 0;<br> for(int i = 0; i &lt; n; i++) /* rebuild suma */ suma += v[i];<br> return suma;<br> }<br> void main()<br> {<br> int a[] = {1, 2, 3}, i = 0;<br> while (i &lt; 3)<br> {<br> int s = suma(a, 3);<br> printf(“%d \n”, s);<br> i++;<br> }<br> }<br> <br> Output:<br> function: int suma(int v[], int n)<b
 r> return type: int<br> name: suma<br> number of parameters: 2<br> list of parameters:
 int v[], int n<br> function: void main()<br> return type: void<br> name: main<br> number of parameters: 0<br> list of parameters: -<br> <br> So? Is it hard or has anyone done something like this already? Please send me , on this e-mail, any source examples taht might help me keeping in mind I have never seen a Flex source code :(<br> Thanks a lot, <br> Alex<p>
		<hr size=1>New Yahoo! Messenger with Voice. <a href="http://us.rd.yahoo.com/mail_us/taglines/postman5/*http://us.rd.yahoo.com/evt=39666/*http://beta.messenger.yahoo.com">Call regular phones from your PC</a> and save big.
--0-2028625341-1145400004=:16522--



--===============0335490191==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
help-flex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-flex

--===============0335490191==--