Nasal scripting language: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
No edit summary
m (Link to special directory articles)
Line 4: Line 4:


<syntaxhighlight lang="php">
<syntaxhighlight lang="php">
# to be saved in $FG_ROOT/Nasal/hello.nas
# to be saved in [[$FG_ROOT]]/Nasal/hello.nas
   print( "Hello World!" );
   print( "Hello World!" );
</syntaxhighlight>
</syntaxhighlight>

Revision as of 10:29, 21 March 2013


FlightGear offers a very powerful functional scripting language called Nasal, which supports reading and writing of internal FlightGear properties, accessing internal data via extension functions, creating GUI dialogs and much more. Please see the right navigation bar to get additional information.

# to be saved in [[$FG_ROOT]]/Nasal/hello.nas
  print( "Hello World!" );

Vim-nasal-syntax-highlighting.png

References