HOC grammar

Anything that doesn't fit elsewhere.
Post Reply
stephanmg

HOC grammar

Post by stephanmg »

Dear NEURON users,

it's been a while when i asked my last question here, now I'm back with some small question:

For the .hoc files there must be available a parser in NEURON.
I'm wondering where I could fine a grammar for this parser (probably (E)BNF would be great).

Best regards,
Stephan
hines
Site Admin
Posts: 1691
Joined: Wed May 18, 2005 3:32 pm

Re: HOC grammar

Post by hines »

That would be the nrn/src/oc/parse.y file.
grep '[:|]' parse.y
would show the rules without , with very few exceptions, the actions
Post Reply