[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Specification languages
- To: cme%cybercash.com@bnr.ca
- Subject: Re: Specification languages
- From: "marcus (m.d.) leech" <mleech@bnr.ca>
- Date: Wed, 28 Feb 1996 18:46:28 -0500
- Cc: "marcus (m.d.) leech" <mleech@bnr.ca>, spki%c2.org@bnr.ca
- In-Reply-To: <v02140b15ad5a89f6dee5@[204.254.34.231]>
- Organization: Nortel Technologies, System Security Services
- Sender: owner-spki@c2.org
- X400-Content-Type: P2-1984 (2)
- X400-Mts-Identifier: [/PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/;<199602282346.AA122961188@bcarh6]
- X400-Originator: mleech@bcarh6dc.ott.bnr.ca
- X400-Received: by mta bnr.ca in /PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/; Relayed; Wed, 28 Feb 1996 18:47:58 -0500
- X400-Received: by /PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/; Relayed; Wed, 28 Feb 1996 18:46:29 -0500
- X400-Received: by /PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/; Relayed; Wed, 28 Feb 1996 18:46:28 -0500
- X400-Received: by /PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/; Relayed; Wed, 28 Feb 1996 18:46:28 -0500
-----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: