Nasal scripting language
| The FlightGear forum has a subforum related to: Nasal Scripting |
| Nasal scripting |
|---|
| Nasal internals |
|---|
| Memory Management (GC) |
Nasal is FlightGear's built-in scripting language, standing for "not another scripting language". Originally written and developed by Andy Ross for a personal project, it was integrated into FlightGear in November 2003, and has been continuously developed, improved, and refined since then. Over time, it has become probably FlightGear's most powerful, and has been used to create a huge variety of systems, ranging from wildfires to Control Display Units.
Nasal uses some of the concepts of ECMA/JavaScript, Python and Perl and implements a simple but complete way of Object Oriented Programming (OOP). It supports the reading and writing of internal properties, accessing internal data via extension functions, creating GUI dialogs and much more within FlightGear.
Please see the right navigation bar to get more information and tutorials about Nasal itself.
First Nasal script
A Hello World example:
# to be saved in $FG_ROOT/Nasal/hello.nas
print("Hello World!");