1.1. Hello Felix

There is no better introduction to a programming language than the infamous hello-world program.
Start felix section to tut/examples/tut_beg101.flx[1 /1 ]
     1: #line 24 "./lpsrc/flx_tutorial.pak"
     2: #import <flx.flxh>
     3: print "Hello World\n";
End felix section to tut/examples/tut_beg101.flx[1]
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/tut_beg101
This produces three files:
  tut/examples/tut_beg101.hpp
  tut/examples/tut_beg101.cpp
  tut/examples/tut_beg101.so
We'll learn more about their structure later.