File:  [CSRG BSD Unix] / 43BSDReno / contrib / isode-beta / doc / manual / grind4-7.py
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:56 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43reno
BSD 4.3reno

...

BEGIN

PersonnelRecord
	%{ char *Title; %}
	::=
	[APPLICATION 0]
	    IMPLICIT SET {
		    Name
		    %{
			printf ("Name: %s %s. %s\n",
				givenName, initial, familyName);
		    %},

		title[0]
		    IA5String
		    [[s Title]]
		    %{ printf ("Title: %s\n", Title); %},

		    EmployeeNumber,

		dateOfHire[1]
		    Date
		    %{ printf ("Date of Hire: %s\n", Date); %},

		nameOfSpouse[2]
		    Name
		    %{
			printf ("Name of Spouse: %s %s. %s\n",
				givenName, initial, familyName);
		    %},

		[3]
		    %{
			PE	cc = prim2seq ($$);
			if (cc)
			    printf ("Number of Children: %d\n",
				    cc -> pe_cardinal);
		    %}
		    IMPLICIT SEQUENCE OF ChildInformation
		    DEFAULT {}
	    }
	    %{ printf ("--------\n"); %}
...

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.