Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199512_2.adf » !Regulars » Regulars/StarInfo/Seery/grammar/desc

Regulars/StarInfo/Seery/grammar/desc

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Recent acquisitions » Acorn ADFS disks » adfs_AcornUser_199512_2.adf » !Regulars
Filename: Regulars/StarInfo/Seery/grammar/desc
Read OK:
File size: 06E7 bytes
Load address: 0000
Exec address: 0000
File contents
V[t] = {x | x are terminals} :
	0	begin
	1	end
	2	video
	3	e480
	4	e360
	5	e240
	6	e180
	7	e120
	8	e60
	9	categories
	10	programme
	11	from
	12	starts
	13	ends
	14	category
	15	precedes
	16	follows
	17	leftBrace
	18	rightBrace
	19	comma
	20	semiColon
	21	identifier
	22	stringLiteral
	23	constant
	24	endOfStream

V[n] = {y | y are nonterminals} :
00000	input = begin declarations end semiColon .
00001	declarations = video_declaration declarations 
	| categories_declaration declarations 
	| programme_declaration declarations 
	| .
00002	video_declaration = video video_type video_ids semiColon .
00003	video_type = e480 
	| e360 
	| e240 
	| e180 
	| e120 
	| e60 .
00004	video_ids = identifier video_id_list .
00005	video_id_list = comma identifier video_id_list 
	| .
00006	categories_declaration = categories leftBrace category_ids rightBrace semiColon .
00007	category_ids = identifier category_id_list .
00008	category_id_list = comma identifier category_id_list 
	| .
00009	programme_declaration = programme leftBrace programme_declarators rightBrace stringLiteral semiColon .
00010	programme_declarators = from_declaration programme_declarators 
	| start_declaration programme_declarators 
	| end_declaration programme_declarators 
	| category_declaration programme_declarators 
	| precedes_declaration programme_declarators 
	| follows_declaration programme_declarators 
	| .
00011	from_declaration = from identifier semiColon .
00012	start_declaration = starts constant constant constant semiColon .
00013	end_declaration = ends constant constant constant semiColon .
00014	category_declaration = category identifier semiColon .
00015	precedes_declaration = precedes stringLiteral semiColon .
00016	follows_declaration = follows stringLiteral semiColon .
00000000  56 5b 74 5d 20 3d 20 7b  78 20 7c 20 78 20 61 72  |V[t] = {x | x ar|
00000010  65 20 74 65 72 6d 69 6e  61 6c 73 7d 20 3a 0a 09  |e terminals} :..|
00000020  30 09 62 65 67 69 6e 0a  09 31 09 65 6e 64 0a 09  |0.begin..1.end..|
00000030  32 09 76 69 64 65 6f 0a  09 33 09 65 34 38 30 0a  |2.video..3.e480.|
00000040  09 34 09 65 33 36 30 0a  09 35 09 65 32 34 30 0a  |.4.e360..5.e240.|
00000050  09 36 09 65 31 38 30 0a  09 37 09 65 31 32 30 0a  |.6.e180..7.e120.|
00000060  09 38 09 65 36 30 0a 09  39 09 63 61 74 65 67 6f  |.8.e60..9.catego|
00000070  72 69 65 73 0a 09 31 30  09 70 72 6f 67 72 61 6d  |ries..10.program|
00000080  6d 65 0a 09 31 31 09 66  72 6f 6d 0a 09 31 32 09  |me..11.from..12.|
00000090  73 74 61 72 74 73 0a 09  31 33 09 65 6e 64 73 0a  |starts..13.ends.|
000000a0  09 31 34 09 63 61 74 65  67 6f 72 79 0a 09 31 35  |.14.category..15|
000000b0  09 70 72 65 63 65 64 65  73 0a 09 31 36 09 66 6f  |.precedes..16.fo|
000000c0  6c 6c 6f 77 73 0a 09 31  37 09 6c 65 66 74 42 72  |llows..17.leftBr|
000000d0  61 63 65 0a 09 31 38 09  72 69 67 68 74 42 72 61  |ace..18.rightBra|
000000e0  63 65 0a 09 31 39 09 63  6f 6d 6d 61 0a 09 32 30  |ce..19.comma..20|
000000f0  09 73 65 6d 69 43 6f 6c  6f 6e 0a 09 32 31 09 69  |.semiColon..21.i|
00000100  64 65 6e 74 69 66 69 65  72 0a 09 32 32 09 73 74  |dentifier..22.st|
00000110  72 69 6e 67 4c 69 74 65  72 61 6c 0a 09 32 33 09  |ringLiteral..23.|
00000120  63 6f 6e 73 74 61 6e 74  0a 09 32 34 09 65 6e 64  |constant..24.end|
00000130  4f 66 53 74 72 65 61 6d  0a 0a 56 5b 6e 5d 20 3d  |OfStream..V[n] =|
00000140  20 7b 79 20 7c 20 79 20  61 72 65 20 6e 6f 6e 74  | {y | y are nont|
00000150  65 72 6d 69 6e 61 6c 73  7d 20 3a 0a 30 30 30 30  |erminals} :.0000|
00000160  30 09 69 6e 70 75 74 20  3d 20 62 65 67 69 6e 20  |0.input = begin |
00000170  64 65 63 6c 61 72 61 74  69 6f 6e 73 20 65 6e 64  |declarations end|
00000180  20 73 65 6d 69 43 6f 6c  6f 6e 20 2e 0a 30 30 30  | semiColon ..000|
00000190  30 31 09 64 65 63 6c 61  72 61 74 69 6f 6e 73 20  |01.declarations |
000001a0  3d 20 76 69 64 65 6f 5f  64 65 63 6c 61 72 61 74  |= video_declarat|
000001b0  69 6f 6e 20 64 65 63 6c  61 72 61 74 69 6f 6e 73  |ion declarations|
000001c0  20 0a 09 7c 20 63 61 74  65 67 6f 72 69 65 73 5f  | ..| categories_|
000001d0  64 65 63 6c 61 72 61 74  69 6f 6e 20 64 65 63 6c  |declaration decl|
000001e0  61 72 61 74 69 6f 6e 73  20 0a 09 7c 20 70 72 6f  |arations ..| pro|
000001f0  67 72 61 6d 6d 65 5f 64  65 63 6c 61 72 61 74 69  |gramme_declarati|
00000200  6f 6e 20 64 65 63 6c 61  72 61 74 69 6f 6e 73 20  |on declarations |
00000210  0a 09 7c 20 2e 0a 30 30  30 30 32 09 76 69 64 65  |..| ..00002.vide|
00000220  6f 5f 64 65 63 6c 61 72  61 74 69 6f 6e 20 3d 20  |o_declaration = |
00000230  76 69 64 65 6f 20 76 69  64 65 6f 5f 74 79 70 65  |video video_type|
00000240  20 76 69 64 65 6f 5f 69  64 73 20 73 65 6d 69 43  | video_ids semiC|
00000250  6f 6c 6f 6e 20 2e 0a 30  30 30 30 33 09 76 69 64  |olon ..00003.vid|
00000260  65 6f 5f 74 79 70 65 20  3d 20 65 34 38 30 20 0a  |eo_type = e480 .|
00000270  09 7c 20 65 33 36 30 20  0a 09 7c 20 65 32 34 30  |.| e360 ..| e240|
00000280  20 0a 09 7c 20 65 31 38  30 20 0a 09 7c 20 65 31  | ..| e180 ..| e1|
00000290  32 30 20 0a 09 7c 20 65  36 30 20 2e 0a 30 30 30  |20 ..| e60 ..000|
000002a0  30 34 09 76 69 64 65 6f  5f 69 64 73 20 3d 20 69  |04.video_ids = i|
000002b0  64 65 6e 74 69 66 69 65  72 20 76 69 64 65 6f 5f  |dentifier video_|
000002c0  69 64 5f 6c 69 73 74 20  2e 0a 30 30 30 30 35 09  |id_list ..00005.|
000002d0  76 69 64 65 6f 5f 69 64  5f 6c 69 73 74 20 3d 20  |video_id_list = |
000002e0  63 6f 6d 6d 61 20 69 64  65 6e 74 69 66 69 65 72  |comma identifier|
000002f0  20 76 69 64 65 6f 5f 69  64 5f 6c 69 73 74 20 0a  | video_id_list .|
00000300  09 7c 20 2e 0a 30 30 30  30 36 09 63 61 74 65 67  |.| ..00006.categ|
00000310  6f 72 69 65 73 5f 64 65  63 6c 61 72 61 74 69 6f  |ories_declaratio|
00000320  6e 20 3d 20 63 61 74 65  67 6f 72 69 65 73 20 6c  |n = categories l|
00000330  65 66 74 42 72 61 63 65  20 63 61 74 65 67 6f 72  |eftBrace categor|
00000340  79 5f 69 64 73 20 72 69  67 68 74 42 72 61 63 65  |y_ids rightBrace|
00000350  20 73 65 6d 69 43 6f 6c  6f 6e 20 2e 0a 30 30 30  | semiColon ..000|
00000360  30 37 09 63 61 74 65 67  6f 72 79 5f 69 64 73 20  |07.category_ids |
00000370  3d 20 69 64 65 6e 74 69  66 69 65 72 20 63 61 74  |= identifier cat|
00000380  65 67 6f 72 79 5f 69 64  5f 6c 69 73 74 20 2e 0a  |egory_id_list ..|
00000390  30 30 30 30 38 09 63 61  74 65 67 6f 72 79 5f 69  |00008.category_i|
000003a0  64 5f 6c 69 73 74 20 3d  20 63 6f 6d 6d 61 20 69  |d_list = comma i|
000003b0  64 65 6e 74 69 66 69 65  72 20 63 61 74 65 67 6f  |dentifier catego|
000003c0  72 79 5f 69 64 5f 6c 69  73 74 20 0a 09 7c 20 2e  |ry_id_list ..| .|
000003d0  0a 30 30 30 30 39 09 70  72 6f 67 72 61 6d 6d 65  |.00009.programme|
000003e0  5f 64 65 63 6c 61 72 61  74 69 6f 6e 20 3d 20 70  |_declaration = p|
000003f0  72 6f 67 72 61 6d 6d 65  20 6c 65 66 74 42 72 61  |rogramme leftBra|
00000400  63 65 20 70 72 6f 67 72  61 6d 6d 65 5f 64 65 63  |ce programme_dec|
00000410  6c 61 72 61 74 6f 72 73  20 72 69 67 68 74 42 72  |larators rightBr|
00000420  61 63 65 20 73 74 72 69  6e 67 4c 69 74 65 72 61  |ace stringLitera|
00000430  6c 20 73 65 6d 69 43 6f  6c 6f 6e 20 2e 0a 30 30  |l semiColon ..00|
00000440  30 31 30 09 70 72 6f 67  72 61 6d 6d 65 5f 64 65  |010.programme_de|
00000450  63 6c 61 72 61 74 6f 72  73 20 3d 20 66 72 6f 6d  |clarators = from|
00000460  5f 64 65 63 6c 61 72 61  74 69 6f 6e 20 70 72 6f  |_declaration pro|
00000470  67 72 61 6d 6d 65 5f 64  65 63 6c 61 72 61 74 6f  |gramme_declarato|
00000480  72 73 20 0a 09 7c 20 73  74 61 72 74 5f 64 65 63  |rs ..| start_dec|
00000490  6c 61 72 61 74 69 6f 6e  20 70 72 6f 67 72 61 6d  |laration program|
000004a0  6d 65 5f 64 65 63 6c 61  72 61 74 6f 72 73 20 0a  |me_declarators .|
000004b0  09 7c 20 65 6e 64 5f 64  65 63 6c 61 72 61 74 69  |.| end_declarati|
000004c0  6f 6e 20 70 72 6f 67 72  61 6d 6d 65 5f 64 65 63  |on programme_dec|
000004d0  6c 61 72 61 74 6f 72 73  20 0a 09 7c 20 63 61 74  |larators ..| cat|
000004e0  65 67 6f 72 79 5f 64 65  63 6c 61 72 61 74 69 6f  |egory_declaratio|
000004f0  6e 20 70 72 6f 67 72 61  6d 6d 65 5f 64 65 63 6c  |n programme_decl|
00000500  61 72 61 74 6f 72 73 20  0a 09 7c 20 70 72 65 63  |arators ..| prec|
00000510  65 64 65 73 5f 64 65 63  6c 61 72 61 74 69 6f 6e  |edes_declaration|
00000520  20 70 72 6f 67 72 61 6d  6d 65 5f 64 65 63 6c 61  | programme_decla|
00000530  72 61 74 6f 72 73 20 0a  09 7c 20 66 6f 6c 6c 6f  |rators ..| follo|
00000540  77 73 5f 64 65 63 6c 61  72 61 74 69 6f 6e 20 70  |ws_declaration p|
00000550  72 6f 67 72 61 6d 6d 65  5f 64 65 63 6c 61 72 61  |rogramme_declara|
00000560  74 6f 72 73 20 0a 09 7c  20 2e 0a 30 30 30 31 31  |tors ..| ..00011|
00000570  09 66 72 6f 6d 5f 64 65  63 6c 61 72 61 74 69 6f  |.from_declaratio|
00000580  6e 20 3d 20 66 72 6f 6d  20 69 64 65 6e 74 69 66  |n = from identif|
00000590  69 65 72 20 73 65 6d 69  43 6f 6c 6f 6e 20 2e 0a  |ier semiColon ..|
000005a0  30 30 30 31 32 09 73 74  61 72 74 5f 64 65 63 6c  |00012.start_decl|
000005b0  61 72 61 74 69 6f 6e 20  3d 20 73 74 61 72 74 73  |aration = starts|
000005c0  20 63 6f 6e 73 74 61 6e  74 20 63 6f 6e 73 74 61  | constant consta|
000005d0  6e 74 20 63 6f 6e 73 74  61 6e 74 20 73 65 6d 69  |nt constant semi|
000005e0  43 6f 6c 6f 6e 20 2e 0a  30 30 30 31 33 09 65 6e  |Colon ..00013.en|
000005f0  64 5f 64 65 63 6c 61 72  61 74 69 6f 6e 20 3d 20  |d_declaration = |
00000600  65 6e 64 73 20 63 6f 6e  73 74 61 6e 74 20 63 6f  |ends constant co|
00000610  6e 73 74 61 6e 74 20 63  6f 6e 73 74 61 6e 74 20  |nstant constant |
00000620  73 65 6d 69 43 6f 6c 6f  6e 20 2e 0a 30 30 30 31  |semiColon ..0001|
00000630  34 09 63 61 74 65 67 6f  72 79 5f 64 65 63 6c 61  |4.category_decla|
00000640  72 61 74 69 6f 6e 20 3d  20 63 61 74 65 67 6f 72  |ration = categor|
00000650  79 20 69 64 65 6e 74 69  66 69 65 72 20 73 65 6d  |y identifier sem|
00000660  69 43 6f 6c 6f 6e 20 2e  0a 30 30 30 31 35 09 70  |iColon ..00015.p|
00000670  72 65 63 65 64 65 73 5f  64 65 63 6c 61 72 61 74  |recedes_declarat|
00000680  69 6f 6e 20 3d 20 70 72  65 63 65 64 65 73 20 73  |ion = precedes s|
00000690  74 72 69 6e 67 4c 69 74  65 72 61 6c 20 73 65 6d  |tringLiteral sem|
000006a0  69 43 6f 6c 6f 6e 20 2e  0a 30 30 30 31 36 09 66  |iColon ..00016.f|
000006b0  6f 6c 6c 6f 77 73 5f 64  65 63 6c 61 72 61 74 69  |ollows_declarati|
000006c0  6f 6e 20 3d 20 66 6f 6c  6c 6f 77 73 20 73 74 72  |on = follows str|
000006d0  69 6e 67 4c 69 74 65 72  61 6c 20 73 65 6d 69 43  |ingLiteral semiC|
000006e0  6f 6c 6f 6e 20 2e 0a                              |olon ..|
000006e7