Skip to content
Trylon computer language
C Perl Vim script Assembly Ruby JavaScript Shell
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs docs: Updating html. Jul 21, 2010
library Added "Posix Termios". Incomplete and largely untested. Jun 22, 2013
misc trylon.vim: Added "uses" keyword. Jun 28, 2010
old Fixes and notes about obscure field-access bugs. Aug 31, 2007
sources Dragging in some modules when X86Compiler is used, so scripts can use… Jun 22, 2013
tests tests/posix: Works again. Jan 8, 2013
.gdbinit Tagged Int fixes. Jul 13, 2009
.gitignore .gitignore: Added "working". May 6, 2011
License Added the License. Apr 28, 2007
Notes Merge branch 'master' into new-parser Mar 5, 2009
ReadMe Moving info about the Jolt backend out of ReadMe. Apr 17, 2009
ReadMe.trylon-2
build-settings More cleaning-out of Jolt stuff. Nov 23, 2009
makefile Mac builds now prefer Homebrew as the source of the GC lib. Jan 5, 2013
search Added "search" script. Jul 24, 2009
trylon-interpreter Class-based scripting is now the default. Jul 24, 2009
version Updated "version" to "3-dev", which should've been done some time ago. Aug 26, 2009

ReadMe

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".



You can’t perform that action at this time.