Nasal Hello World: Difference between revisions

Jump to navigation Jump to search
no edit summary
m (Use Nasal highlighter)
No edit summary
Line 1: Line 1:
{{Nasal Navigation}}
{{Nasal Navigation}}


 
In the programming world, a "Hello, World!" program is used to illustrate basic syntax using a very simple program. The '''"Hello, World!" program in [[Nasal]]''' would look like this:
A simple hello world example in Nasal would be (to be saved in [[$FG_ROOT]]/Nasal):
 
<syntaxhighlight lang="nasal">
<syntaxhighlight lang="nasal">
# [[$FG_ROOT]]/Nasal/hello.nas
print('Hello World!');
print('Hello World!');
</syntaxhighlight>
</syntaxhighlight>

Navigation menu