Changing NMODL

Particularly useful chunks of hoc and/or NMODL code. May be pedestrian or stunningly brilliant, may make you gasp or bring tears to your eyes, but always makes you think "I wish I had written that; I'm sure going to steal it."
Post Reply
roybens
Posts: 54
Joined: Fri Mar 14, 2008 7:57 am

Changing NMODL

Post 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
ted
Site Admin
Posts: 6286
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Changing NMODL

Post 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?
roybens
Posts: 54
Joined: Fri Mar 14, 2008 7:57 am

Re: Changing NMODL

Post 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.
hines
Site Admin
Posts: 1682
Joined: Wed May 18, 2005 3:32 pm

Re: Changing NMODL

Post 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.
roybens
Posts: 54
Joined: Fri Mar 14, 2008 7:57 am

Re: Changing NMODL

Post by roybens »

Thank you,
I'll take a look into these files.
Post Reply