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: 39
Joined: Fri Mar 14, 2008 7:57 am

Changing NMODL

Post by roybens » Sun Aug 21, 2011 8:18 am

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: 5351
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Changing NMODL

Post by ted » Mon Aug 22, 2011 11:26 am

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: 39
Joined: Fri Mar 14, 2008 7:57 am

Re: Changing NMODL

Post by roybens » Tue Aug 23, 2011 9:48 am

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: 1523
Joined: Wed May 18, 2005 3:32 pm

Re: Changing NMODL

Post by hines » Tue Aug 23, 2011 3:45 pm

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: 39
Joined: Fri Mar 14, 2008 7:57 am

Re: Changing NMODL

Post by roybens » Sat Aug 27, 2011 3:53 pm

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

Post Reply