Nasal Hello World: Difference between revisions

Jump to navigation Jump to search
m
Link to special directory articles
m (Link to special directory articles)
Line 4: Line 4:
== Hello world ==
== Hello world ==


A simple hello world example in Nasal would be (to be saved in $FG_ROOT/Nasal):
A simple hello world example in Nasal would be (to be saved in [[$FG_ROOT]]/Nasal):


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

Navigation menu