Hello World |
Examples | |
This example is quite straight forward!
You can see that, as opposed to other languages,
it doesn't take three consultants just to print
something!!
For this example, you need to have a copy of
the interpreter for your machine. The interpreter
is 'aptilis.exe'. (Yes, even under Unix, I have
left the 'exe' extension.)
First type the following text file, for example
with the 'Notepad' under Windows or 'vi' under
Unix and save it as 'hello1.e.txt'.
You have to be careful with the Notepad which
will add a '.txt' extension from time to time.
Just make sure you use the right name when
you call Aptilis, which is not fussy with the names
of the files it is fed with...
sub main print("Hello World!") end mainThen, run the programme. To do that, you need to pass your programme to the interpreter. You have to make sure that the interpreter is in the path, or that it is in the same directory as your Aptilis programme. Note that Aptilis is a 32 bits programme and will run only under Windows 95 or Windows NT, or, of course under the supported UNIX versions.
Things learnt: