Difference between revisions of "Comments"

From MiniScript Wiki
Jump to navigation Jump to search
(Created page with "A ''comment'' in programming jargon is a bit of free text for readers of the code, ignored by the compiler. Comments in MiniScript begin with two forward slashes (//) and con...")
 
Line 8: Line 8:
 
print "Hello world!"
 
print "Hello world!"
 
// End of program (this line is also a comment).</source>
 
// End of program (this line is also a comment).</source>
 +
 +
<c>blah</c>
  
 
[[Category:Language]]
 
[[Category:Language]]

Revision as of 16:43, 9 February 2020

A comment in programming jargon is a bit of free text for readers of the code, ignored by the compiler.

Comments in MiniScript begin with two forward slashes (//) and continue until the end of the line.

Example:

// Hello world program.  (This line is a comment.)
print "Hello world!"
// End of program (this line is also a comment).

blah