-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReadMe
More file actions
71 lines (45 loc) · 1.67 KB
/
ReadMe
File metadata and controls
71 lines (45 loc) · 1.67 KB
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
Trylon ReadMe
=============
What Is Trylon?
---------------
Trylon is a computer language. Code in it looks like a cross between Python
and Smalltalk -- indentation is significant, expressions are like Smalltalk
(but with operator precedence). It is object-oriented and garbage collected
and it compiles down to binaries via C.
What Does It Look Like?
-----------------------
Hello world:
trylon hello-world
main: arguments
send: "Hello world!"
Or, using a new class:
trylon hello-world
class Halloer
say-it
send: "Hello!"
main: arguments
halloer = Halloer new
halloer say-it
Installation
------------
You must have the Boehm-Demers-Wieser garbage collector installed as "libgc".
This has different package names on different distributions, such as "boehm-gc"
(Gentoo), "libgc-dev" (Debian/Ubuntu, or so I'm told), "boehmgc" (MacPorts), or
simply "gc" (Fink).
You won't be able to build Trylon from the 'master' branch of Git repository.
You must start with the tarball: <http://somefancy.com/trylon/trylon.tgz>; or
from the 'with-c-sources' branch of the Git repository.
To install Trylon from the tarball, do this:
make
make install
The "make install" will install /usr/bin/trylon and /usr/lib/trylon. If you
want to install it elsewhere, you can use PREFIX:
make PREFIX=/opt install
The Trylon compiler will look for its library in a few standard places
(/usr/lib, /usr/local/lib, /opt/lib, even $HOME/trylon), but if install it
somewhere else, you will need to set the $TRYLON_LIBRARY environment variable
to tell it where it is.
Contacts
--------
The Trylon web site is at <http://somefancy.com/trylon>. You can contact me by
email at "steve@folta.net".