Page 1 of 1

HOC grammar

Posted: Mon Mar 16, 2015 7:25 am
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

Re: HOC grammar

Posted: Wed Mar 18, 2015 7:39 am
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