/
index
68 lines (38 loc) · 1.71 KB
/
index
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
Trylon
What is Trylon?
Trylon is a computer language. It is basically a cross between Python and Smalltalk. It uses indentation for <a href="code-structure.html">program structure</a>, like Python, and it uses Smalltalk's <a href="expressions.html">expression syntax</a> (but with precedence). Its <a href="objects.html">objects</a> are dynamically typed, but its programs are statically compiled (via C).
======
What does it look like?
A simple "Hello World":
trylon hello-world
main: arguments
send: "Hello world!"
return 0
A more object-oriented "Hello World":
trylon hello-world
class Hailer
field whom
create: whom
this whom = whom
hail
send: ("Hello, ", whom, "!")
main: arguments
hailer = Hailer new: "world"
hailer hail
return 0
======
What is Trylon 2?
Trylon 2 improves on the original Trylon by having a better, simpler object system. See the <a href="objects.html">objects</a> doc.
Other smaller improvements have also been made: "try"/"else", for instance. And there is a backend for Jolt (from the Trylid project), and an experimental interpreter.
======
Getting Trylon
Trylon is available as a <a href="trylon.tgz">tarball</a> which should compile on Unixy systems (but you'll need to have the Boehm-Demers-Weiser garbage collector package installed).
Alternately, you can get it with Git: "git clone git://repo.or.cz/trylon.git". Then checkout the 'with-c-sources' branch and "make".
======
Documentation
<a href="objects.html">Objects</a>
<a href="code-structure.html">Code Structure</a>
<a href="statements.html">Statements</a>
<a href="expressions.html">Expressions</a>
<a href="building.html">Building Trylon Programs</a>
<a href="debugging.html">Debugging</a>