Page 1 of 1

Changing NMODL

Posted: Sun Aug 21, 2011 8:18 am
by roybens
Hello,
I want to change the code which is generated by NMODL, I want to generate my own code using NMODL.

Is there anyone who has done something similar or can someone guide me ?

Thank You

Re: Changing NMODL

Posted: Mon Aug 22, 2011 11:26 am
by ted
roybens wrote:Is there anyone who has done something similar
Haven't heard of it.
or can someone guide me ?
The first question is, what are you trying to accomplish? What ultmate task are you trying to deal with?

Re: Changing NMODL

Posted: Tue Aug 23, 2011 9:48 am
by roybens
Hi,
The NMODL parser, generates a C code from the mod files.
I want, from the same mode files, generate my own C code.
Meaning, I want only to change the output of the parser.

Re: Changing NMODL

Posted: Tue Aug 23, 2011 3:45 pm
by hines
Long ago, probably more than 20 years, Upi Bhalla and I transformed nmodl into gmodl to
generate Genesis channels. That is now lost in the deeps of time.
NMODL is mostly an elaborate macro substitution program. The only way to understand it
is to look at the c code translation of example mod files. Most of the interface declarations are
emitted from nocpout.c and most of the interface code is emitted from noccout.c.

Re: Changing NMODL

Posted: Sat Aug 27, 2011 3:53 pm
by roybens
Thank you,
I'll take a look into these files.