summaryrefslogtreecommitdiff
path: root/ipl/packs/euler/readme
blob: 3ee0a4e35816b6d0578100fcf85a096317acea65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
				EULER
			A COMPILER AND INTERPRETER
		Wirth's and Weber's contribution to the
		development of ALGOL translated into Icon.



euler.icn	The EULER compiler and interpreter main program
eulerscn.icn	The EULER scanner
eulersem.icn	The EULER translator module
eulerint.icn	The EULER interpreter
euler.ll1	The parse tables for parsellk
euler.grm	The grammar file used by TLCLL1 to build euler.ll1

	From the TLCLL1 Parser:
PARSELL1.ICN	LL(1) parser
READLL1.ICN	input routine for translated grammars
SEMSTK.ICN	semantics routines called by PARSELL1.ICN to handle
		the semantics stack

	From the Icon Program Library:
xcode.icn
escape.icn
ebcdic.icn


		Building EULER

You can execute the batch file buildk.bat to build EULER.

Six files from the Icon Program Library and three files from 
the TLCLL1 parser generator are included with this distribution 
and can be compiled separately.

To build EULER by hand, you may execute

  icont -c xcodeobj escape ebcdic 

  icont -c parsell1 readll1 semstk
  icont -fs euler eulerscn eulersem eulerint parsell1.u1 readll1.u1 semstk.u1

The first icont line compiles the files from the IPL. You may
omit the line if you have the IPL installed. The second icont
line compiles modules from the TLCLL1 parser. The third line
compiles EULER's modules. The flag -fs tells the translator
that EULER calls some procedures by giving their names as
strings. In Icon version 8, this flag is not needed; in version
9 it is.

		Running EULER

To have EULER translate and execute a program prog.eul, execute

		Under Icon version 8:

	iconx euler prog.eul

		Under Icon version 9:

	 euler prog.eul

If you would also like a listing of the translated code, execute

		Under Icon version 8:

	iconx euler -s prog.eul

		Under Icon version 9:

	 euler -s prog.eul


		Getting Icon

If you do not have a copy of Icon, you can get it over the
Internet: ftp it from cs.arizona.edu:
	ftp ftp.cs.arizona.edu
	name: anonymous
	password: your_e-mail_address
	cd icon

Versions of Icon for several machines are in subdirectories of
directory icon. You may also want to pick up the Icon
Programming Library.