1.1. Hello Felix
There is no better introduction to a programming
language than the infamous hello-world program.
Start C++ section to tut/examples/tut101.flx[1
/1
]
1: include "std";
2: print "Hello World\n";
and the Felix version is simplicity itself.
The first line includes the standard library,
and the second prints the hello world message.
You'll notice that the argument to print is not
enclosed in backets. We'll learn more about
this shortly.
To run the example, make sure you are in the
directory containing the Felix demo package,
then type:
bin/flx tut/examples/tut101
This produces three files:
tut/examples/tut101.hpp
tut/examples/tut101.cpp
tut/examples/tut101.so
We'll learn more about their structure later.