Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.maple > #1159

Re: Syrup Syntax Checking

From Joe Riel <joer@san.rr.com>
Newsgroups comp.soft-sys.math.maple
Subject Re: Syrup Syntax Checking
Date 2015-07-09 07:20 -0700
Organization A noiseless patient Spider
Message-ID <87zj35jtub.fsf@san.rr.com> (permalink)
References <4dadncK5F6-_mQPInZ2dnUU7-QWdnZ2d@megapath.net>

Show all headers | View raw


"Thomas D. Dean" <tomdean@speakeasy.org> writes:

> Are any tools available for checking the Syntax of a deck?

Not really.  
>
> I get
>
>> volts,others:=Solve(ckt,'returnall'):
> Error, (in Syrup:-Solve) module does not export `value`
>
> Are nested subckts supported?

Yes.  
>
> From reading the help page, the level of subckt definition must be the
> same as the call to that subckt.

I believe that is the case.  An exception is subcircuits used to define
semiconductors; the definitions can be at a higher level.  Hmm.
Possibly they must be at the top-level, I don't recall.  In the example
below, try moving the include statement for Library:-Diode out of the
subcircuit (I haven't tried it).  You can email me the full model and
I'll investigate it.



>
> The circuit is long, but, its form is:
>
> *
> .subckt A 1 2 3
> .include Library:-Diode
> .subckt B 1 2
> ...
> .ends B
> .subckt C 1 2 3
> ...
> .ends C
> ...
> D1 23 45 B(Io=315E-9,eta=1,Vt=0.02569260564)
> Q1 34 35 36 C(beta=3000)
> D2 33 44 Diode(Io=1E-15,eta=1,Vt=0.02569260564)
> ...
> .ends A
> V1 1 0 10
> X1 1 2 3 A
> ...
> .end
>
> If I comment out the D1,Q1, and D2 lines, I do not get the error.
>
> Tom Dean

-- 
Joe Riel

Back to comp.soft-sys.math.maple | Previous | NextPrevious in thread | Find similar


Thread

Syrup Syntax Checking "Thomas D. Dean" <tomdean@speakeasy.org> - 2015-07-08 22:18 -0700
  Re: Syrup Syntax Checking Joe Riel <joer@san.rr.com> - 2015-07-09 07:20 -0700

csiph-web