current stable:
0.99.6
unstable:
cvs (0.99.7)
General
  Home / News
  About
  Contact
  The Team

Obtaining
  Download
  Source Tarball
  CVS Web View
  Misc. Files

Documentation
  Introduction
The Manual
  Download [html]
  Download [pdf]
  View Online
API
  Download [html]
  View Online
Resources
  Script Examples

Developer
  Introduction
Developer Guide
  Download [html]
  Download [pdf]
  View Online
Ferite C API
  Download [html]
  View Online




Open Source Approved

SourceForge Logo
KwMap.net - browse the Keyword Map of ferite.org

[previous] Why should I choose ferite?[up][toc]Comments [next]


Chapter 2. Language Reference

Scripts

Scripts are made up of two main parts and are written as follows:
    Class, Namespace, Function, Global and Use definitions
    Main program code
    					

The Main program code is what is called when the script is run. All parts of a program have to be declared before they are used. This is to keep the code clean rather than a name resolution reason (all names are resolved at runtime within ferite). The Main program code is equivalent to the main() method within a C or Java program.

An example script (the famous Hello World program):
    uses "console";
    Console.println( "Hello World from ferite" );
    					

The 'uses' statement is used to import API either from and external module or from another script and is described in greater depth later on. This is highly useful as the default operation of ferite has no API.



[previous] Why should I choose ferite?[up][toc]Comments [next]
ferite et al © 2000-2004, Chris Ross