Convert expr from CForm to InputFrom
- To: mathgroup at smc.vnet.net
- Subject: [mg14759] Convert expr from CForm to InputFrom
- From: Anton Antonov <anton at unidhp1.uni-c.dk>
- Date: Sat, 14 Nov 1998 03:07:51 -0500
- Organization: UNI-C, Denmark
- Sender: owner-wri-mathgroup at wolfram.com
Hi, Do you know how I can convert expression in CForm to expression in InputFrom. I can do of course the opposite CForm[expr]. For example I want the C expression ( f, dj, conc, rc are arrays): f(1)= dj(3)*conc(2) + ( dj(13) + rc(10)*conc(2) )*conc(9) to have f[1]= dj[3]*conc[2] + ( dj[13] + rc[10]*conc[2] )*conc[9] Now I am using some perl program for this convertion. Regards Anton