September 2017 Update

This commit is contained in:
Ingy döt Net 2017-09-23 10:01:46 +02:00
parent bba7bfd280
commit ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions

View file

@ -0,0 +1,11 @@
/* This is a comment. */
2 + /* Comment between tokens. */ 3
"This is a string, /* NOT a comment */."
/*
* A comment can have multiple lines. These asterisks in the middle
* of the comment are only for style. You must not nest a comment
* inside another comment; the first asterisk-slash ends the comment.
*/

View file

@ -0,0 +1,11 @@
#!/usr/bin/bc
# This form of comment is an extension, not part of standard bc.
# Your program must not have a #! shebang line
# unless your bc supports this form of comment.
2 + 3 # It can be after a statement.
a = 1 # The newline is not part of the comment.
b = 2 # So this line is a different statement.

View file

@ -1,3 +0,0 @@
/* This is a simple
C-style comment */
// this also is

View file

@ -1,5 +0,0 @@
/+ Nestable comment
/+ See?
+/
+/
Yay! I'm code!

View file

@ -1,5 +0,0 @@
/// I'm documentation!
/** I'm multi-
line documentation. */
/++ And I
/++ can be nested +/ +/

View file

@ -1,11 +0,0 @@
/*****************************************
* This function solves world hunger.
* Examples:
* ----------------------------------------
* feed_world (earth);
* ----------------------------------------
* Date: May 4, 2011
* Bugs: Does not solve world thirst.
* See_Also:
* SoylentGreen
* Authors: J. Random Hacker. */

View file

@ -0,0 +1 @@
[Making and discarding a string acts like a comment] sz

View file

@ -0,0 +1 @@
# remainder of line is a comment

View file

@ -1,2 +1,6 @@
' This whole line is a comment and is ignored by the gambas interpreter
print "Hello" ' Comments after an apostrophe are ignored
'' A bold-style comment
' TODO: To Do comment will appear in Task Bar
' FIXME: Fix Me comment will appear in Task Bar
' NOTE: Note commnet will appear in Task Bar

View file

@ -0,0 +1,5 @@
# this is a comment
# backslash continues \
a comment to the next \
line or lines

View file

@ -0,0 +1,7 @@
# this doesn't work
foo(n) = (n \
+ 2 # no good \
+ 3)
# behaves as if you wrote merely
foo(n) = (n+2

View file

@ -0,0 +1,31 @@
// This is a single line comment
/*
This is a
multi-line
comment
*/
/*
Multi-line comments
/*
can also be nested
*/
like so
*/
const val CURRENT_VERSION = "1.0.5-2" // A comment can also be added at the end of a line
const val /* or even in the middle of a line */ NEXT_MAJOR_VERSION = "1.1"
/**
* This is a documentation comment used by KDoc.
*
* It's documenting the main function which is the entry-point to a Kotlin executable.
*
* @param [args] A string array containing the command line arguments (if any) passed to the executable
* @return Implicit return value is Unit which signifies no meaningful return value (like 'void' in java)
*/
fun main(args: Array<String>) {
println("Current stable version is $CURRENT_VERSION")
println("Next major version is $NEXT_MAJOR_VERSION")
}

View file

@ -1,7 +1,7 @@
\newcommand{\firstpart}{understand}
\newcommand{\firstpart}[1]{under#1}
\newcommand{\secondpart}{able}
\newcommand{\complete}{%
\firstpart%
\firstpart{stand}%
\secondpart}
\complete

View file

@ -0,0 +1,6 @@
;Single Line Comment
/*
Multiple
Line
Comment
*/

View file

@ -1,14 +0,0 @@
# Nimrod supports only single-line comments
var x = 0 ## Documentation comments start with double hash characters.
var y = 0 ## Comments are a proper part of the syntax and are indentation sensitive.
## If the next line only consists of a comment piece, it must be aligned
## either to the preceding one (documentation generator would merge these lines)
## or to the code block (starting a new comment piece).
# any misaligned comment line (like this one) would trigger an "invalid indentation" error
var z = 0 ## Alternatively you can end the preceding comment piece with a backslash \
## to reset alignment to any column you like.
## See also http://nimrod-code.org/tut1.html#comments

View file

@ -0,0 +1,9 @@
/*
Multi-line comment block
*/
-- this type of comment works in ooRexx, NetRexx and some of the more popular REXX implementations like Regina
hour = 0 -- which is, like midnight, dude.
hour = 12 /* time for lunch! works as well (and really everywhere) */

View file

@ -0,0 +1,2 @@
% this is a comment
This is not.

View file

@ -0,0 +1,6 @@
\def\firstpart#1{under#1}
\def\secondpart{able}
\def\complete{\firstpart{stand}%
\secondpart}
\complete

View file

@ -1,3 +0,0 @@
<@ OMT>This is a
multiline
comment</@>

View file

@ -0,0 +1,4 @@
'This is single-line comment
''This is
multiline comment''

View file

@ -0,0 +1 @@
# a single line comment

View file

@ -0,0 +1,20 @@
'Single line comments are preceded by a single quote or the command REM
PRINT "Hello" 'Single line comments may follow code
PRINT "Hello" REM You can also use the command REM following code
/*
Multi-line comments
are surrounded by
mirrored slash
and asterisk
*/
/*Multi-line comments do not have to actually have multiple lines*/
/* Spaces before or after comment bounds are optional.*/
/* A comment can also follow another comment */ 'Like this
Some programmers like to do this to allow for /* Procedural comments */ followed by 'Programmer's notes.

View file

@ -0,0 +1,7 @@
* Line comment: must be used at the beginning of a line (does not work in Mata)
// Line comment until the end of the line
/* Multiline comment
*/

View file

@ -1 +1 @@
# single line comment
# single-line comment

View file

@ -0,0 +1,10 @@
x=1; // comment ala C++
x=2; # ala scripts
/* ala C, these comments are parsed (also ala C) */
/* can /* be */ nested */
#if 0
also ala C (and parsed)
#endif
#<<<#
"here" comment, unparsed
#<<<#