HOC grammar

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

HOC grammar

Post by stephanmg » Mon Mar 16, 2015 7:25 am

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

Re: HOC grammar

Post by hines » Wed Mar 18, 2015 7:39 am

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