Nasal Hello World: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(A few more edits, inc. comment out stuff on strings which doesn't belong here)
mNo edit summary
Line 3: Line 3:
In the programming world, a {{wikipedia|"Hello, World!" program}} is used to illustrate basic syntax using a very simple program. The '''"Hello, World!" program in [[Nasal]]''' would look like this (run this in the [[Nasal Console]]):
In the programming world, a {{wikipedia|"Hello, World!" program}} is used to illustrate basic syntax using a very simple program. The '''"Hello, World!" program in [[Nasal]]''' would look like this (run this in the [[Nasal Console]]):
<syntaxhighlight lang="nasal">
<syntaxhighlight lang="nasal">
print("Hello World!");
print("Hello, World!");
</syntaxhighlight>
</syntaxhighlight>



Revision as of 18:48, 19 October 2016


In the programming world, a "Hello, World!" program This is a link to a Wikipedia article is used to illustrate basic syntax using a very simple program. The "Hello, World!" program in Nasal would look like this (run this in the Nasal Console):

print("Hello, World!");

This will print the string Hello, World! into the console.