[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Specification languages



-----BEGIN PGP SIGNED MESSAGE-----

> 
> At 16:25 2/28/96, marcus (m.d.) leech wrote:
> 
> looks good, with one confusion for me:
> 
> 
> >typedef Signature
> >{
> >     KeyId          uint64
> >     OtherIdent     octets
> >     OthIdType      uint8
> >     SigType        uint8  selects(SigBytes)
> >       SigBytes[0]    RSASignature
> >       SigBytes[1]    DSSSignature
> >}
> 
> isn't clear in how it's going to show up in C or PASCAL.
> What were you envisioning?
> 
> 
[Keep in mind that I "invented" this thing in about two minutes]
I would imagine that in C, it would cause SigBytes to be a void *
  pointer, that would point to one of two different kinds of
  structures.

The last time I invented one of these, the whole thing compiled
  into "code" for a parser table, rather than compiling into a specific
  target language.

> typedef Signature
> {
>      KeyId          uint64
>      OtherIdent     octets
>      OthIdType      uint8
>      SigType        uint8  selects
>       {0: (rsa    RSASignature )
>        1: (dss    DSSSignature )
>       }
> }
> 
Your syntax has merit.

OK, so total "design" time on this new specification language is
  about 10 minutes, I would guess.  I bet some keener without a
  job could code up a compiler in a couple of hours  :-)

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQBVAwUBMTTpUqp9EtiCAjydAQEXwQH+IwvAYhTnMXDKH2M+wt5tAcHLQ77Q4tFB
lNtKyRPQwmOIp1YzZC6cP5S7EvHhG3dCUC9T58+e0jkGbgu2ujmcAQ==
=Rpzu
-----END PGP SIGNATURE-----

--
----------------------------------------------------------------------
Marcus Leech                   Mail: Dept 4C16, MS 238, CAR
Systems Security Architect     Phone   : (ESN) 395-4901  (613) 763-9145
Systems Security Services      Fax     : (ESN) 393-7679  (613) 763-7679
Nortel Technologies            mleech@bnr.ca
-----------------Expressed opinions are my own, not my employers------

References: