September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
11
Task/Comments/Bc/comments-1.bc
Normal file
11
Task/Comments/Bc/comments-1.bc
Normal 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.
|
||||
*/
|
||||
11
Task/Comments/Bc/comments-2.bc
Normal file
11
Task/Comments/Bc/comments-2.bc
Normal 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.
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
/* This is a simple
|
||||
C-style comment */
|
||||
// this also is
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
/+ Nestable comment
|
||||
/+ See?
|
||||
+/
|
||||
+/
|
||||
Yay! I'm code!
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
/// I'm documentation!
|
||||
/** I'm multi-
|
||||
line documentation. */
|
||||
/++ And I
|
||||
/++ can be nested +/ +/
|
||||
|
|
@ -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. */
|
||||
1
Task/Comments/Dc/comments-1.dc
Normal file
1
Task/Comments/Dc/comments-1.dc
Normal file
|
|
@ -0,0 +1 @@
|
|||
[Making and discarding a string acts like a comment] sz
|
||||
1
Task/Comments/Dc/comments-2.dc
Normal file
1
Task/Comments/Dc/comments-2.dc
Normal file
|
|
@ -0,0 +1 @@
|
|||
# remainder of line is a comment
|
||||
|
|
@ -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
|
||||
|
|
|
|||
5
Task/Comments/Gnuplot/comments-1.gnuplot
Normal file
5
Task/Comments/Gnuplot/comments-1.gnuplot
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# this is a comment
|
||||
|
||||
# backslash continues \
|
||||
a comment to the next \
|
||||
line or lines
|
||||
7
Task/Comments/Gnuplot/comments-2.gnuplot
Normal file
7
Task/Comments/Gnuplot/comments-2.gnuplot
Normal 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
|
||||
31
Task/Comments/Kotlin/comments.kotlin
Normal file
31
Task/Comments/Kotlin/comments.kotlin
Normal 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")
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
\newcommand{\firstpart}{understand}
|
||||
\newcommand{\firstpart}[1]{under#1}
|
||||
\newcommand{\secondpart}{able}
|
||||
\newcommand{\complete}{%
|
||||
\firstpart%
|
||||
\firstpart{stand}%
|
||||
\secondpart}
|
||||
|
||||
\complete
|
||||
|
|
|
|||
6
Task/Comments/MIRC-Scripting-Language/comments.mirc
Normal file
6
Task/Comments/MIRC-Scripting-Language/comments.mirc
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
;Single Line Comment
|
||||
/*
|
||||
Multiple
|
||||
Line
|
||||
Comment
|
||||
*/
|
||||
|
|
@ -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
|
||||
9
Task/Comments/OoRexx/comments.rexx
Normal file
9
Task/Comments/OoRexx/comments.rexx
Normal 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) */
|
||||
2
Task/Comments/PlainTeX/comments-1.tex
Normal file
2
Task/Comments/PlainTeX/comments-1.tex
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
% this is a comment
|
||||
This is not.
|
||||
6
Task/Comments/PlainTeX/comments-2.tex
Normal file
6
Task/Comments/PlainTeX/comments-2.tex
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
\def\firstpart#1{under#1}
|
||||
\def\secondpart{able}
|
||||
\def\complete{\firstpart{stand}%
|
||||
\secondpart}
|
||||
|
||||
\complete
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
<@ OMT>This is a
|
||||
multiline
|
||||
comment</@>
|
||||
4
Task/Comments/SPL/comments.spl
Normal file
4
Task/Comments/SPL/comments.spl
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
'This is single-line comment
|
||||
|
||||
''This is
|
||||
multiline comment''
|
||||
1
Task/Comments/Sed/comments.sed
Normal file
1
Task/Comments/Sed/comments.sed
Normal file
|
|
@ -0,0 +1 @@
|
|||
# a single line comment
|
||||
20
Task/Comments/Smart-BASIC/comments.smart
Normal file
20
Task/Comments/Smart-BASIC/comments.smart
Normal 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.
|
||||
7
Task/Comments/Stata/comments.stata
Normal file
7
Task/Comments/Stata/comments.stata
Normal 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
|
||||
|
||||
*/
|
||||
|
|
@ -1 +1 @@
|
|||
# single line comment
|
||||
# single-line comment
|
||||
|
|
|
|||
10
Task/Comments/Zkl/comments.zkl
Normal file
10
Task/Comments/Zkl/comments.zkl
Normal 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
|
||||
#<<<#
|
||||
Loading…
Add table
Add a link
Reference in a new issue