Debian Codegraph @

ipl/packs/euler/readme

raw
1 EULER
2 A COMPILER AND INTERPRETER
3 Wirth's and Weber's contribution to the
4 development of ALGOL translated into Icon.
5
6
7
8 euler.icn The EULER compiler and interpreter main program
9 eulerscn.icn The EULER scanner
10 eulersem.icn The EULER translator module
11 eulerint.icn The EULER interpreter
12 euler.ll1 The parse tables for parsellk
13 euler.grm The grammar file used by TLCLL1 to build euler.ll1
14
15 From the TLCLL1 Parser:
16 PARSELL1.ICN LL(1) parser
17 READLL1.ICN input routine for translated grammars
18 SEMSTK.ICN semantics routines called by PARSELL1.ICN to handle
19 the semantics stack
20
21 From the Icon Program Library:
22 xcode.icn
23 escape.icn
24 ebcdic.icn
25
26
27 Building EULER
28
29 You can execute the batch file buildk.bat to build EULER.
30
31 Six files from the Icon Program Library and three files from
32 the TLCLL1 parser generator are included with this distribution
33 and can be compiled separately.
34
35 To build EULER by hand, you may execute
36
37 icont -c xcodeobj escape ebcdic
38
39 icont -c parsell1 readll1 semstk
40 icont -fs euler eulerscn eulersem eulerint parsell1.u1 readll1.u1 semstk.u1
41
42 The first icont line compiles the files from the IPL. You may
43 omit the line if you have the IPL installed. The second icont
44 line compiles modules from the TLCLL1 parser. The third line
45 compiles EULER's modules. The flag -fs tells the translator
46 that EULER calls some procedures by giving their names as
47 strings. In Icon version 8, this flag is not needed; in version
48 9 it is.
49
50 Running EULER
51
52 To have EULER translate and execute a program prog.eul, execute
53
54 Under Icon version 8:
55
56 iconx euler prog.eul
57
58 Under Icon version 9:
59
60 euler prog.eul
61
62 If you would also like a listing of the translated code, execute
63
64 Under Icon version 8:
65
66 iconx euler -s prog.eul
67
68 Under Icon version 9:
69
70 euler -s prog.eul
71
72
73 Getting Icon
74
75 If you do not have a copy of Icon, you can get it over the
76 Internet: ftp it from cs.arizona.edu:
77 ftp ftp.cs.arizona.edu
78 name: anonymous
79 password: your_e-mail_address
80 cd icon
81
82 Versions of Icon for several machines are in subdirectories of
83 directory icon. You may also want to pick up the Icon
84 Programming Library.
85