HOC grammar

Anything that doesn't fit elsewhere.
Post Reply
Posts: 68
Joined: Tue Jul 03, 2012 4:40 am

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,
Site Admin
Posts: 1607
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