home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / progrmng / mlpmodul.sit / M2Lib / SYM / Terminal.SYM < prev    next >
Unknown  |  1990-10-04  |  1.0 KB  |  [MSYM/????]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert GammaCAD Document (other/gammaCAD) ext Unsupported
1% dexvert Oberon Symbol (other/oberonSymbol) ext Unsupported
1% dexvert Turbo Modula-2 Symbol Data (other/turboModula2SymbolData) ext Unsupported
1% dexvert Logitech Modula-2 Loadable Symbols (other/logitechModula2LoadableSymbols) ext Unsupported
100% file data default
100% xdgMime image/x-tga default


id metadata
keyvalue
macFileType[MSYM]
macFileCreator[????]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 07 00 03 07 00 00 07 99 | 3d 07 0b 37 13 54 65 72 |........|=..7.Ter|
|00000010| 6d 69 6e 61 6c 00 01 07 | 00 00 07 99 3d 07 0b 37 |minal...|....=..7|
|00000020| 13 54 65 72 6d 69 6e 61 | 6c 00 03 13 53 59 53 54 |.Termina|l...SYST|
|00000030| 45 4d 00 04 13 57 72 69 | 74 65 00 13 57 72 69 74 |EM...Wri|te..Writ|
|00000040| 65 53 74 72 69 6e 67 00 | 13 57 72 69 74 65 4c 6e |eString.|.WriteLn|
|00000050| 00 13 52 65 61 64 00 13 | 52 65 61 64 53 74 72 69 |..Read..|ReadStri|
|00000060| 6e 67 00 13 42 75 73 79 | 52 65 61 64 00 13 52 65 |ng..Busy|Read..Re|
|00000070| 61 64 41 67 61 69 6e 00 | 13 4b 65 79 50 72 65 73 |adAgain.|.KeyPres|
|00000080| 73 00 13 47 6f 74 6f 58 | 59 00 13 43 6c 65 61 72 |s..GotoX|Y..Clear|
|00000090| 54 65 72 6d 69 6e 61 6c | 00 11 13 57 72 69 74 65 |Terminal|...Write|
|000000a0| 00 07 00 01 11 17 13 43 | 48 41 52 00 18 11 13 57 |.......C|HAR....W|
|000000b0| 72 69 74 65 53 74 72 69 | 6e 67 00 07 00 02 11 17 |riteStri|ng......|
|000000c0| 10 0b 13 43 48 41 52 00 | 18 11 13 57 72 69 74 65 |...CHAR.|...Write|
|000000d0| 4c 6e 00 07 00 03 11 17 | 18 11 13 52 65 61 64 00 |Ln......|...Read.|
|000000e0| 07 00 04 11 17 10 13 43 | 48 41 52 00 18 11 13 52 |.......C|HAR....R|
|000000f0| 65 61 64 53 74 72 69 6e | 67 00 07 00 05 11 17 10 |eadStrin|g.......|
|00000100| 0b 13 43 48 41 52 00 18 | 11 13 42 75 73 79 52 65 |..CHAR..|..BusyRe|
|00000110| 61 64 00 07 00 06 11 17 | 10 13 43 48 41 52 00 18 |ad......|..CHAR..|
|00000120| 11 13 52 65 61 64 41 67 | 61 69 6e 00 07 00 07 11 |..ReadAg|ain.....|
|00000130| 17 18 11 13 4b 65 79 50 | 72 65 73 73 00 07 00 08 |....KeyP|ress....|
|00000140| 11 17 18 15 13 42 4f 4f | 4c 45 41 4e 00 11 13 47 |.....BOO|LEAN...G|
|00000150| 6f 74 6f 58 59 00 07 00 | 09 11 17 13 49 4e 54 45 |otoXY...|....INTE|
|00000160| 47 45 52 00 13 49 4e 54 | 45 47 45 52 00 18 11 13 |GER..INT|EGER....|
|00000170| 43 6c 65 61 72 54 65 72 | 6d 69 6e 61 6c 00 07 00 |ClearTer|minal...|
|00000180| 0a 11 17 18 02 00 0d 20 | 20 20 61 20 63 61 72 64 |....... | a card|
|00000190| 69 6e 61 6c 20 74 68 65 | 6e 20 72 65 74 75 72 6e |inal the|n return|
|000001a0| 20 30 2e 20 2a 29 0d 0d | 50 52 4f 43 45 44 55 52 | 0. *)..|PROCEDUR|
|000001b0| 45 20 49 6e 74 56 61 6c | 75 65 20 28 74 65 72 6d |E IntVal|ue (term|
|000001c0| 3a 20 50 72 6f 6c 6f 67 | 54 65 72 6d 29 3a 20 49 |: Prolog|Term): I|
|000001d0| 4e 54 45 47 45 52 3b 0d | 28 2a 20 72 65 74 75 72 |NTEGER;.|(* retur|
|000001e0| 6e 20 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 74 |n the va|lue of t|
|000001f0| 68 65 20 69 6e 74 65 67 | 65 72 20 63 6f 6e 73 74 |he integ|er const|
|00000200| 61 6e 74 20 66 6f 75 6e | 64 20 69 6e 20 27 74 65 |ant foun|d in 'te|
|00000210| 72 6d 27 2e 20 49 66 20 | 27 74 65 72 6d 27 20 69 |rm'. If |'term' i|
|00000220| 73 20 6e 6f 74 0d 20 20 | 20 61 6e 20 69 6e 74 65 |s not. | an inte|
|00000230| 67 65 72 20 74 68 65 6e | 20 72 65 74 75 72 6e 20 |ger then| return |
|00000240| 30 2e 20 2a 29 0d 0d 50 | 52 4f 43 45 44 55 52 45 |0. *)..P|ROCEDURE|
|00000250| 20 52 65 61 6c 56 61 6c | 75 65 20 28 74 65 72 6d | RealVal|ue (term|
|00000260| 3a 20 50 72 6f 6c 6f 67 | 54 65 72 6d 29 3a 20 52 |: Prolog|Term): R|
|00000270| 45 41 4c 3b 20 20 0d 28 | 2a 20 72 65 74 75 72 6e |EAL; .(|* return|
|00000280| 20 74 68 65 20 76 61 6c | 75 65 20 6f 66 20 74 68 | the val|ue of th|
|00000290| 65 20 72 65 61 6c 20 63 | 6f 6e 73 74 61 6e 74 20 |e real c|onstant |
|000002a0| 66 6f 75 6e 64 20 69 6e | 20 27 74 65 72 6d 27 2e |found in| 'term'.|
|000002b0| 20 49 66 20 27 74 65 72 | 6d 27 20 69 73 20 6e 6f | If 'ter|m' is no|
|000002c0| 74 0d 20 20 20 61 20 72 | 65 61 6c 20 74 68 65 6e |t. a r|eal then|
|000002d0| 20 72 65 74 75 72 6e 20 | 30 2e 30 20 2a 29 0d 0d | return |0.0 *)..|
|000002e0| 50 52 4f 43 45 44 55 52 | 45 20 41 72 69 74 79 20 |PROCEDUR|E Arity |
|000002f0| 28 74 65 72 6d 3a 20 50 | 72 6f 6c 6f 67 54 65 72 |(term: P|rologTer|
|00000300| 6d 29 3a 20 43 41 52 44 | 49 4e 41 4c 3b 0d 28 2a |m): CARD|INAL;.(*|
|00000310| 20 72 65 74 75 72 6e 20 | 74 68 65 20 6e 75 6d 62 | return |the numb|
|00000320| 65 72 20 6f 66 20 61 72 | 67 75 6d 65 6e 74 73 20 |er of ar|guments |
|00000330| 6f 66 20 61 20 74 65 72 | 6d 20 69 66 20 69 74 20 |of a ter|m if it |
|00000340| 69 73 20 61 20 66 75 6e | 63 74 6f 72 2c 20 6f 74 |is a fun|ctor, ot|
|00000350| 68 65 72 77 69 73 65 20 | 30 2e 20 2a 29 0d 0d 50 |herwise |0. *)..P|
|00000360| 52 4f 43 45 44 55 52 45 | 20 47 65 74 41 72 67 75 |ROCEDURE| GetArgu|
|00000370| 6d 65 6e 74 20 28 20 20 | 20 20 74 65 72 6d 20 20 |ment ( | term |
|00000380| 20 20 3a 20 50 72 6f 6c | 6f 67 54 65 72 6d 3b 0d | : Prol|ogTerm;.|
|00000390| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000003a0| 20 20 20 20 20 20 20 20 | 20 20 20 6e 75 6d 62 65 | | numbe|
|000003b0| 72 20 20 3a 20 43 41 52 | 44 49 4e 41 4c 3b 0d 20 |r : CAR|DINAL;. |
|000003c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000003d0| 20 20 20 20 20 20 56 41 | 52 20 61 72 67 75 6d 65 | VA|R argume|
|000003e0| 6e 74 3a 20 50 72 6f 6c | 6f 67 54 65 72 6d 3b 0d |nt: Prol|ogTerm;.|
|000003f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
+--------+-------------------------+-------------------------+--------+--------+