Nasal scripting language: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[FlightGear]] offers a very powerful functional '''scripting language''' called '''[http://plausible.org/nasal/ Nasal]''', which supports reading and writing of internal [[Property Tree Intro|FlightGear properties]], accessing internal data via extension functions, creating GUI dialogs and much more. Please see the right navigation bar to get additional information.
[[FlightGear]] offers a very powerful functional '''scripting language''' called '''[http://plausible.org/nasal/ Nasal]''', which supports reading and writing of internal [[Property Tree Intro|FlightGear properties]], accessing internal data via extension functions, creating GUI dialogs and much more. Please see the right navigation bar to get additional information.
<syntaxhighlight lang="php">
# to be saved in $FG_ROOT/Nasal/hello.nas
for (var i=0;i<10;i=i+1) {
  print("Hello World, run:", i);
}
</syntaxhighlight>


{{Template:Nasal Navigation}}
{{Template:Nasal Navigation}}

Revision as of 12:45, 19 August 2012

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

for (var i=0;i<10;i=i+1) {
  print("Hello World, run:", i);
}


References