SPICE syntax and grammar

Sep 28, 2005 4 Replies

Hi, does anyone know where I can get a formal Backus-Naur style syntax and/or grammar definition for any of the various SPICEs out there?



Specifically, hspice, pspice, or berkeley spice. What is the difference from a grammar/syntax perspective?


thanks ms



Huh?

Why are you focusing of the specific syntax used by an application program, rather than on understanding the nature of the data being entered?

I've probably only used pspice 5-6 times over the past 4 years, and I really couldn't care a hoot about what syntax is used.

God knows why you want to find a formal Backus-Naur syntax based data entry today for a program as simple as pspice unless you are obsessed with developing an expertise in archaic methods.

Realize that as much as many of us resist and hate them, GUI data entry now rules the world of computers.

Kindest regards, Harry C.

Because I'm interested in writing a program that understands SPICE syntax, not because I want to write SPICE files manually. I want to write, for example, a simple linear equation solver, to get a feel for what's really going on inside spice, and to play with some software ideas about how circuit software should work. Eventually I'd like to write my own EDA tools, for the fun of it, and so I'd like to have the official format.

I think Oregano is open source, (you can probably extract a yacc grammar from that ...)

Bye. Jasen

ISTM it could be handy to know the full language syntax if one wanted to define new circuit elements...

Bye. Jasen

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required