Comments

In SML source code comments can be inserted to:

Twin Builder supports two types of comments:

Example:

SMLDEF MacroRC

{

/* electrical pins */

PORT ELECTRICAL : N1;

PORT ELECTRICAL : N2;

/* parameter pins */

PORT REAL in RESISTANCE[Ohm] : ValueR = 1k; // value of the

resistance

PORT REAL in CAPACITANCE[F] : ValueC = 1u; // value of the

capacitance

/* Output values - unused

PORT REAL out : VR = R1.V;

PORT REAL out : VC = C1.V;

*/

INTERN R R1 N1:=N2, N2:=GND ( R := ValueR ) ;

INTERN C C1 N1:=N2, N2:=N1 ( C := ValueC ) ;

}