Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
5
Task/Comments/00-META.yaml
Normal file
5
Task/Comments/00-META.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
category:
|
||||
- Initialization
|
||||
from: http://rosettacode.org/wiki/Comments
|
||||
note: Basic language learning
|
||||
15
Task/Comments/00-TASK.txt
Normal file
15
Task/Comments/00-TASK.txt
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
;Task:
|
||||
Show all ways to include text in a language source file
|
||||
that's completely ignored by the compiler or interpreter.
|
||||
|
||||
|
||||
;Related tasks:
|
||||
* [[Documentation]]
|
||||
* [[Here_document]]
|
||||
|
||||
|
||||
;See also:
|
||||
* [https://en.wikipedia.org/wiki/Comment_(computer_programming) Wikipedia]
|
||||
* [http://xkcd.com/156 xkcd] (Humor: hand gesture denoting <code>//</code> for "commenting out" people.)
|
||||
<br><br>
|
||||
|
||||
15
Task/Comments/11l/comments.11l
Normal file
15
Task/Comments/11l/comments.11l
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
// Single line comment
|
||||
\\ Also single line comment (continuation of the comment in previous line)
|
||||
|
||||
\[ This is
|
||||
a multi line
|
||||
comment ]
|
||||
|
||||
\{ And
|
||||
this }
|
||||
|
||||
\( And
|
||||
this )
|
||||
|
||||
\‘ And
|
||||
this ’
|
||||
6
Task/Comments/360-Assembly/comments.360
Normal file
6
Task/Comments/360-Assembly/comments.360
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
* An asterisk in column one denotes a comment line
|
||||
* Comments may also follow any syntactically complete instruction:
|
||||
LA 1,0 Comment
|
||||
NOP Comment (after a NOP instruction)
|
||||
* Comments after instructions with omitted operands require a comma ","
|
||||
END , Comment (without comma, "Comment" assumed an operand of "END")
|
||||
2
Task/Comments/4D/comments.4d
Normal file
2
Task/Comments/4D/comments.4d
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
`Comments in 4th Dimension begin with the accent character and extend to the end of the line (until 4D version 2004).
|
||||
// This is a comment starting from 4D v11 and newer. Accent character is replaced by //
|
||||
1
Task/Comments/6502-Assembly/comments.6502
Normal file
1
Task/Comments/6502-Assembly/comments.6502
Normal file
|
|
@ -0,0 +1 @@
|
|||
nop ; comments begin with a semicolon
|
||||
1
Task/Comments/68000-Assembly/comments.68000
Normal file
1
Task/Comments/68000-Assembly/comments.68000
Normal file
|
|
@ -0,0 +1 @@
|
|||
MOVEM.L D0-D7/A0-A6,-(SP) ;push all registers onto the stack
|
||||
2
Task/Comments/8086-Assembly/comments.8086
Normal file
2
Task/Comments/8086-Assembly/comments.8086
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
MOV AX, 4C00h ; go back to DOS
|
||||
INT 21h ; BIOS interrupt 21 base 16
|
||||
7
Task/Comments/AArch64-Assembly/comments.aarch64
Normal file
7
Task/Comments/AArch64-Assembly/comments.aarch64
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/* ARM assembly AARCH64 Raspberry PI 3B */
|
||||
/* comments multi lines
|
||||
|
||||
end comments
|
||||
*/
|
||||
|
||||
// comment end of ligne
|
||||
3
Task/Comments/ACL2/comments.acl2
Normal file
3
Task/Comments/ACL2/comments.acl2
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
; Single line comment
|
||||
#| Multi-line
|
||||
comment |#
|
||||
4
Task/Comments/ALGOL-60/comments.alg
Normal file
4
Task/Comments/ALGOL-60/comments.alg
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
'COMMENT' this is a first comment;
|
||||
'COMMENT'
|
||||
****** this is a second comment ******
|
||||
;
|
||||
11
Task/Comments/ALGOL-M/comments.alg
Normal file
11
Task/Comments/ALGOL-M/comments.alg
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
begin
|
||||
|
||||
comment - This form is borrowed from ALGOL 60;
|
||||
|
||||
% And this is borrowed from ALGOL W %
|
||||
|
||||
% ALGOL-M will not compile an "empty" program, so we have %
|
||||
% to include at least one code-generating statement! %
|
||||
write("This is only an exercise");
|
||||
|
||||
end
|
||||
8
Task/Comments/ALGOL-W/comments.alg
Normal file
8
Task/Comments/ALGOL-W/comments.alg
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
begin
|
||||
comment a comment;
|
||||
% another comment
|
||||
;
|
||||
% and
|
||||
another
|
||||
%
|
||||
end this_word_is_also_a_comment.
|
||||
1
Task/Comments/ANT/comments.ant
Normal file
1
Task/Comments/ANT/comments.ant
Normal file
|
|
@ -0,0 +1 @@
|
|||
2 + 2 /This is a comment
|
||||
1
Task/Comments/APL/comments.apl
Normal file
1
Task/Comments/APL/comments.apl
Normal file
|
|
@ -0,0 +1 @@
|
|||
⍝ This is a comment
|
||||
7
Task/Comments/ARM-Assembly/comments.arm
Normal file
7
Task/Comments/ARM-Assembly/comments.arm
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
/* ARM assembly Raspberry PI comment one line */
|
||||
/* comment line 1
|
||||
comment line 2
|
||||
*/
|
||||
|
||||
mov r0,#0 @ this comment on end of line
|
||||
mov r1,#0 // authorized comment
|
||||
3
Task/Comments/AWK/comments.awk
Normal file
3
Task/Comments/AWK/comments.awk
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
BEGIN { # this code does something
|
||||
# do something
|
||||
}
|
||||
4
Task/Comments/Action-/comments.action
Normal file
4
Task/Comments/Action-/comments.action
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
;This is a comment
|
||||
|
||||
PROC Main() ;This is a comment as well
|
||||
RETURN
|
||||
1
Task/Comments/Ada/comments.ada
Normal file
1
Task/Comments/Ada/comments.ada
Normal file
|
|
@ -0,0 +1 @@
|
|||
-- All Ada comments begin with "--" and extend to the end of the line
|
||||
9
Task/Comments/Agena/comments.agena
Normal file
9
Task/Comments/Agena/comments.agena
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# single line comment
|
||||
|
||||
#/ multi-line comment
|
||||
- ends with the "/ followed by #" terminator on the next line
|
||||
/#
|
||||
|
||||
/* multi-line comment - C-style
|
||||
- ends with the "* followed by /" terminator on the next line
|
||||
*/
|
||||
3
Task/Comments/AmigaE/comments.amiga
Normal file
3
Task/Comments/AmigaE/comments.amiga
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
/* multiline comment
|
||||
are like C ... */
|
||||
-> this is a end of line comment
|
||||
1
Task/Comments/AngelScript/comments.angel
Normal file
1
Task/Comments/AngelScript/comments.angel
Normal file
|
|
@ -0,0 +1 @@
|
|||
// This is a comment
|
||||
4
Task/Comments/Apex/comments.apex
Normal file
4
Task/Comments/Apex/comments.apex
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
System.debug ('I will execute'); // This comment is ignored.
|
||||
/*
|
||||
I am a large comment, completely ignored as well.
|
||||
*/
|
||||
12
Task/Comments/AppleScript/comments-1.applescript
Normal file
12
Task/Comments/AppleScript/comments-1.applescript
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
--This is a single line comment
|
||||
|
||||
display dialog "ok" --it can go at the end of a line
|
||||
|
||||
# Hash style comments are also supported
|
||||
|
||||
(* This is a multi
|
||||
line comment*)
|
||||
|
||||
(* This is a comment. --comments can be nested
|
||||
(* Nested block comment *)
|
||||
*)
|
||||
1
Task/Comments/AppleScript/comments-2.applescript
Normal file
1
Task/Comments/AppleScript/comments-2.applescript
Normal file
|
|
@ -0,0 +1 @@
|
|||
display dialog "ok" #Starting in version 2.0, end-line comments can begin with a hash
|
||||
1
Task/Comments/Applesoft-BASIC/comments-1.basic
Normal file
1
Task/Comments/Applesoft-BASIC/comments-1.basic
Normal file
|
|
@ -0,0 +1 @@
|
|||
REM COMMENT AFTER THE REM KEYWORD
|
||||
1
Task/Comments/Applesoft-BASIC/comments-2.basic
Normal file
1
Task/Comments/Applesoft-BASIC/comments-2.basic
Normal file
|
|
@ -0,0 +1 @@
|
|||
0 REMLEAVE THE SPACE OUT AFTER THE REM WHEN TYPING OR PASTING
|
||||
1
Task/Comments/Applesoft-BASIC/comments-3.basic
Normal file
1
Task/Comments/Applesoft-BASIC/comments-3.basic
Normal file
|
|
@ -0,0 +1 @@
|
|||
10 PRINT "THIS IS CODE" : REM : PRINT "THIS IS CODE"
|
||||
1
Task/Comments/Applesoft-BASIC/comments-4.basic
Normal file
1
Task/Comments/Applesoft-BASIC/comments-4.basic
Normal file
|
|
@ -0,0 +1 @@
|
|||
20 GOSUB 110COMMENT: PRINT "THIS IS CODE"
|
||||
1
Task/Comments/Applesoft-BASIC/comments-5.basic
Normal file
1
Task/Comments/Applesoft-BASIC/comments-5.basic
Normal file
|
|
@ -0,0 +1 @@
|
|||
30 GOTO 40"COMMENT: THIS IS A COMMENT
|
||||
8
Task/Comments/Applesoft-BASIC/comments-6.basic
Normal file
8
Task/Comments/Applesoft-BASIC/comments-6.basic
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
::::::::::::::::::::::::::::::::::::::
|
||||
40 REM
|
||||
50 :
|
||||
60 REM<ctrl>+J
|
||||
|
||||
70 FOR I = 1 to 10
|
||||
80 ::::PRINT I;MID$("THIS IS A COMMENT",1,0)
|
||||
90 NEXT
|
||||
1
Task/Comments/Applesoft-BASIC/comments-7.basic
Normal file
1
Task/Comments/Applesoft-BASIC/comments-7.basic
Normal file
|
|
@ -0,0 +1 @@
|
|||
100 END : THISISACOMMENT
|
||||
1
Task/Comments/Applesoft-BASIC/comments-8.basic
Normal file
1
Task/Comments/Applesoft-BASIC/comments-8.basic
Normal file
|
|
@ -0,0 +1 @@
|
|||
110 RETURN : "COMMENT FOR AND AT THE END
|
||||
6
Task/Comments/Arturo/comments.arturo
Normal file
6
Task/Comments/Arturo/comments.arturo
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
; This is a simple single-line comment
|
||||
|
||||
a: 10 ; another single-line comment
|
||||
|
||||
; Now, this is a
|
||||
; multi-line comment
|
||||
1
Task/Comments/Asymptote/comments.asymptote
Normal file
1
Task/Comments/Asymptote/comments.asymptote
Normal file
|
|
@ -0,0 +1 @@
|
|||
// double slash to newline
|
||||
5
Task/Comments/AutoHotkey/comments.ahk
Normal file
5
Task/Comments/AutoHotkey/comments.ahk
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
Msgbox, comments demo ; end of line comment
|
||||
/*
|
||||
multiline comment1
|
||||
multiline comment2
|
||||
*/
|
||||
5
Task/Comments/AutoIt/comments.autoit
Normal file
5
Task/Comments/AutoIt/comments.autoit
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#cs
|
||||
Everything between the cs and and the ce is commented.
|
||||
Commented code is not used by the computer.
|
||||
#ce
|
||||
;individual lines after a semicolon are commented.
|
||||
1
Task/Comments/Axe/comments-1.axe
Normal file
1
Task/Comments/Axe/comments-1.axe
Normal file
|
|
@ -0,0 +1 @@
|
|||
.This is a single-line comment
|
||||
3
Task/Comments/Axe/comments-2.axe
Normal file
3
Task/Comments/Axe/comments-2.axe
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
...
|
||||
This is a multi-line comment
|
||||
...
|
||||
3
Task/Comments/Axe/comments-3.axe
Normal file
3
Task/Comments/Axe/comments-3.axe
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
...If 0
|
||||
This is a comment only if the condition evaluates to zero
|
||||
...
|
||||
3
Task/Comments/Axe/comments-4.axe
Normal file
3
Task/Comments/Axe/comments-4.axe
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
...!If 1
|
||||
This is a comment only if the condition evaluates to nonzero
|
||||
...
|
||||
3
Task/Comments/Axe/comments-5.axe
Normal file
3
Task/Comments/Axe/comments-5.axe
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
...Else
|
||||
This is a comment only if the previous conditional comment was executed (and vice versa)
|
||||
...
|
||||
2
Task/Comments/BASIC/comments-1.basic
Normal file
2
Task/Comments/BASIC/comments-1.basic
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
100 REM Standard BASIC comments begin with "REM" (remark) and extend to the end of the line
|
||||
110 PRINT "this is code": REM comment after statement
|
||||
2
Task/Comments/BASIC/comments-2.basic
Normal file
2
Task/Comments/BASIC/comments-2.basic
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
'this is a comment
|
||||
PRINT "this is code" 'comment after statement
|
||||
3
Task/Comments/BASIC256/comments.basic
Normal file
3
Task/Comments/BASIC256/comments.basic
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
rem this is a comment
|
||||
# and this is too
|
||||
print "this is code" #comment after statement
|
||||
2
Task/Comments/BBC-BASIC/comments.basic
Normal file
2
Task/Comments/BBC-BASIC/comments.basic
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
REM This is a comment which is ignored by the compiler
|
||||
*| This is a comment which is compiled but ignored at run time
|
||||
1
Task/Comments/BQN/comments.bqn
Normal file
1
Task/Comments/BQN/comments.bqn
Normal file
|
|
@ -0,0 +1 @@
|
|||
# This is a comment
|
||||
7
Task/Comments/Babel/comments.pb
Normal file
7
Task/Comments/Babel/comments.pb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
-- This is a line-comment
|
||||
|
||||
#
|
||||
This is a block-comment
|
||||
It goes until de-dent
|
||||
|
||||
dedent: 0x42 -- The comment block above is now closed
|
||||
1
Task/Comments/Batch-File/comments-1.bat
Normal file
1
Task/Comments/Batch-File/comments-1.bat
Normal file
|
|
@ -0,0 +1 @@
|
|||
rem Single-line comment.
|
||||
2
Task/Comments/Batch-File/comments-2.bat
Normal file
2
Task/Comments/Batch-File/comments-2.bat
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
:: Another option, though undocumented and known
|
||||
:: to fail in some cases. Best avoided.
|
||||
1
Task/Comments/Batch-File/comments-3.bat
Normal file
1
Task/Comments/Batch-File/comments-3.bat
Normal file
|
|
@ -0,0 +1 @@
|
|||
% this works as long as you have no variable named exactly like this sentence. %
|
||||
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.
|
||||
8
Task/Comments/Beef/comments-1.beef
Normal file
8
Task/Comments/Beef/comments-1.beef
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
//This is a comment.
|
||||
//This is another comment.
|
||||
|
||||
/* This is also a comment. */
|
||||
|
||||
/* This is a
|
||||
multi-line
|
||||
comment */
|
||||
25
Task/Comments/Beef/comments-2.beef
Normal file
25
Task/Comments/Beef/comments-2.beef
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
static
|
||||
{
|
||||
/// Must be placed directly above the method, including attributes.
|
||||
/// Using multiple lines like this is also fine. Both will be recognized.
|
||||
[Optimize]
|
||||
public static void DoAThing() {}
|
||||
|
||||
/// Documentation also works for types.
|
||||
struct SomeStruct
|
||||
{
|
||||
/**
|
||||
* Multiline comment with two ** at the start works in the same way.
|
||||
*/
|
||||
void PrivateMethod() {}
|
||||
}
|
||||
|
||||
/**
|
||||
* If you have a really long explainer here, you may not actually want to show that in autcompletion prompts.
|
||||
* @brief Allows you to select only this line to be shown.
|
||||
*
|
||||
* @param a This is shown when writing a call to this function and placing parameter "a".
|
||||
* @param b For the second argument, the documentation for b (this!) will show up instead.
|
||||
*/
|
||||
public static void DoAnotherThing(int a, int b) {}
|
||||
}
|
||||
2
Task/Comments/Befunge/comments-1.bf
Normal file
2
Task/Comments/Befunge/comments-1.bf
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
& read a number 2+ add two .@ display result and exit
|
||||
^- inline comments -^ <-^- other comments
|
||||
6
Task/Comments/Befunge/comments-2.bf
Normal file
6
Task/Comments/Befunge/comments-2.bf
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
&;read a number;2+;add two;.@;display result and exit;
|
||||
^- inline comments -^ <-^- other comments
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;completely isolated comment block for the paranoid;
|
||||
;(almost - you can still skip into it.) ;
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
1
Task/Comments/Blast/comments.blast
Normal file
1
Task/Comments/Blast/comments.blast
Normal file
|
|
@ -0,0 +1 @@
|
|||
# A hash symbol at the beginning of a line marks the line as a comment
|
||||
1
Task/Comments/Brainf---/comments.bf
Normal file
1
Task/Comments/Brainf---/comments.bf
Normal file
|
|
@ -0,0 +1 @@
|
|||
This is a comment
|
||||
5
Task/Comments/Brat/comments.brat
Normal file
5
Task/Comments/Brat/comments.brat
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# Single line comment
|
||||
|
||||
#* Multi
|
||||
Line
|
||||
Comment *#
|
||||
2
Task/Comments/Brlcad/comments.brlcad
Normal file
2
Task/Comments/Brlcad/comments.brlcad
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# Comments in mget scripts are prefixed with a hash symbol
|
||||
ls # comments may appear at the end of a line
|
||||
1
Task/Comments/Burlesque/comments-1.blq
Normal file
1
Task/Comments/Burlesque/comments-1.blq
Normal file
|
|
@ -0,0 +1 @@
|
|||
"I'm sort of a comment"vv
|
||||
3
Task/Comments/Burlesque/comments-2.blq
Normal file
3
Task/Comments/Burlesque/comments-2.blq
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
"I'm a
|
||||
very long comment spanning
|
||||
over several lines"vv
|
||||
1
Task/Comments/C++/comments-1.cpp
Normal file
1
Task/Comments/C++/comments-1.cpp
Normal file
|
|
@ -0,0 +1 @@
|
|||
// This is a comment
|
||||
1
Task/Comments/C++/comments-2.cpp
Normal file
1
Task/Comments/C++/comments-2.cpp
Normal file
|
|
@ -0,0 +1 @@
|
|||
// This is a valid comment // with a "nested" comment
|
||||
3
Task/Comments/C++/comments-3.cpp
Normal file
3
Task/Comments/C++/comments-3.cpp
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#define FOO \
|
||||
(macro text) // comment
|
||||
(no more macro text)
|
||||
6
Task/Comments/C-Shell/comments.csh
Normal file
6
Task/Comments/C-Shell/comments.csh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/csh -f
|
||||
|
||||
# C Shell has a similar comment syntax, but only allows comments in a
|
||||
# script file, not in terminal input.
|
||||
|
||||
echo Hello#With C Shell, the hash can also be in the middle of a word.
|
||||
8
Task/Comments/C-sharp/comments.cs
Normal file
8
Task/Comments/C-sharp/comments.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
//This is a comment.
|
||||
//This is other comment.
|
||||
|
||||
/* This is a comment too. */
|
||||
|
||||
/* This is a
|
||||
multi-line
|
||||
comment */
|
||||
4
Task/Comments/C/comments-1.c
Normal file
4
Task/Comments/C/comments-1.c
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
/* This is a comment. */
|
||||
/* So is this
|
||||
multiline comment.
|
||||
*/
|
||||
2
Task/Comments/C/comments-2.c
Normal file
2
Task/Comments/C/comments-2.c
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
struct charisma {};
|
||||
void f(char/* comment */isma) {}
|
||||
1
Task/Comments/C/comments-3.c
Normal file
1
Task/Comments/C/comments-3.c
Normal file
|
|
@ -0,0 +1 @@
|
|||
/* some comment /* trying to nest some other comment */ inside */
|
||||
3
Task/Comments/C/comments-4.c
Normal file
3
Task/Comments/C/comments-4.c
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#if 0
|
||||
While technically not a comment, this is also ignored by the compiler
|
||||
#endif
|
||||
7
Task/Comments/C/comments-5.c
Normal file
7
Task/Comments/C/comments-5.c
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#ifdef UNDEFINED
|
||||
This is not compiled.
|
||||
#if 0
|
||||
Nor is this.
|
||||
#endif
|
||||
And this still is not compiled.
|
||||
#endif
|
||||
3
Task/Comments/C/comments-6.c
Normal file
3
Task/Comments/C/comments-6.c
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#if 0
|
||||
This isn't valid.
|
||||
#endif
|
||||
1
Task/Comments/C/comments-7.c
Normal file
1
Task/Comments/C/comments-7.c
Normal file
|
|
@ -0,0 +1 @@
|
|||
// C++ single-line comments were adopted in the C99 standard.
|
||||
1
Task/Comments/COBOL/comments-1.cobol
Normal file
1
Task/Comments/COBOL/comments-1.cobol
Normal file
|
|
@ -0,0 +1 @@
|
|||
* an asterisk in 7th column comments the line out
|
||||
1
Task/Comments/COBOL/comments-2.cobol
Normal file
1
Task/Comments/COBOL/comments-2.cobol
Normal file
|
|
@ -0,0 +1 @@
|
|||
D DISPLAY "Debug"
|
||||
1
Task/Comments/COBOL/comments-3.cobol
Normal file
1
Task/Comments/COBOL/comments-3.cobol
Normal file
|
|
@ -0,0 +1 @@
|
|||
*> This comment syntax was defined (with free format code) in COBOL 2002.
|
||||
1
Task/Comments/COBOL/comments-4.cobol
Normal file
1
Task/Comments/COBOL/comments-4.cobol
Normal file
|
|
@ -0,0 +1 @@
|
|||
>>D DISPLAY "Debug"
|
||||
3
Task/Comments/COBOL/comments-5.cobol
Normal file
3
Task/Comments/COBOL/comments-5.cobol
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
NOTE this paragraph is
|
||||
commented out and ignored
|
||||
.
|
||||
11
Task/Comments/COBOL/comments-6.cobol
Normal file
11
Task/Comments/COBOL/comments-6.cobol
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
IDENTIFICATION DIVISION.
|
||||
PROGRAM-ID. program.
|
||||
|
||||
AUTHOR. Rest of line ignored.
|
||||
REMARKS. Rest of line ignored.
|
||||
REMARKS. More remarks.
|
||||
SECURITY. line ignored.
|
||||
INSTALLATION. line ignored.
|
||||
DATE-WRITTEN. same, human readable dates are allowed for instance
|
||||
DATE-COMPILED. same.
|
||||
DATE-MODIFIED. this one is handy when auto-stamped by an editor.
|
||||
4
Task/Comments/Chapel/comments.chapel
Normal file
4
Task/Comments/Chapel/comments.chapel
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
// single line
|
||||
|
||||
/* multi
|
||||
line */
|
||||
16
Task/Comments/Chef/comments.chef
Normal file
16
Task/Comments/Chef/comments.chef
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
Comment Stew.
|
||||
|
||||
This is a comment.
|
||||
The other comment is a loop, but you can name it anything (single word only).
|
||||
You can also name ingredients as comments
|
||||
This is pseudocode.
|
||||
|
||||
Ingredients.
|
||||
Ingredient list
|
||||
|
||||
Method.
|
||||
Methods.
|
||||
SingleWordCommentOne the Ingredient.
|
||||
Methods.
|
||||
SingleWordCommentTwo until SingleWordCommentOned.
|
||||
Methods.
|
||||
4
Task/Comments/Chipmunk-Basic/comments.basic
Normal file
4
Task/Comments/Chipmunk-Basic/comments.basic
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
10 rem this is a comment
|
||||
20 ' and this is too
|
||||
30 print "this is code" : 'comment after statement
|
||||
40 print "and more code" : rem comment after statement
|
||||
2
Task/Comments/ChucK/comments.chuck
Normal file
2
Task/Comments/ChucK/comments.chuck
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<-- Not common
|
||||
// Usual comment
|
||||
2
Task/Comments/Clean/comments-1.clean
Normal file
2
Task/Comments/Clean/comments-1.clean
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
Start = /* This is a multi-
|
||||
line comment */ 17 // This is a single-line comment
|
||||
1
Task/Comments/Clean/comments-2.clean
Normal file
1
Task/Comments/Clean/comments-2.clean
Normal file
|
|
@ -0,0 +1 @@
|
|||
Start = /* This is a comment /* Nested comment */ still a comment */ 17
|
||||
3
Task/Comments/Clojure/comments-1.clj
Normal file
3
Task/Comments/Clojure/comments-1.clj
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
;; This is a comment
|
||||
(defn foo []
|
||||
123) ; also a comment
|
||||
1
Task/Comments/Clojure/comments-2.clj
Normal file
1
Task/Comments/Clojure/comments-2.clj
Normal file
|
|
@ -0,0 +1 @@
|
|||
(comment (println (foo)) "bar" :baz 123 (System/exit 0)) ;; does nothing, returns nil
|
||||
2
Task/Comments/Clojure/comments-3.clj
Normal file
2
Task/Comments/Clojure/comments-3.clj
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
(+ 1 (comment "foo") 3) ;; Throws an exception, because it tries to add nil to an integer
|
||||
(+ 1 #_"foo" 3) ;; Returns 4
|
||||
5
Task/Comments/CoffeeScript/comments.coffee
Normal file
5
Task/Comments/CoffeeScript/comments.coffee
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# one line comment
|
||||
|
||||
### multi
|
||||
line
|
||||
comment ###
|
||||
5
Task/Comments/ColdFusion/comments-1.cfm
Normal file
5
Task/Comments/ColdFusion/comments-1.cfm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
As ColdFusion's grammar is based around HTML syntax, commenting is similar to HTML.
|
||||
<!--- This is a comment. Nothing in this tag can be seen by the end user.
|
||||
Note the three-or-greater dashes to open and close the tag. --->
|
||||
<!-- This is an HTML comment. Any HTML between the opening and closing of the tag will be ignored, but any ColdFusion code will still run.
|
||||
Note that in the popular FuseBox framework for ColdFusion, the circuit.xml files require that you use this style of comment. -->
|
||||
2
Task/Comments/ColdFusion/comments-2.cfm
Normal file
2
Task/Comments/ColdFusion/comments-2.cfm
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
/* This is a comment */
|
||||
// This is also a comment
|
||||
12
Task/Comments/Common-Lisp/comments-1.lisp
Normal file
12
Task/Comments/Common-Lisp/comments-1.lisp
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
;;;; This code implements the foo and bar functions
|
||||
|
||||
;;; The foo function calls bar on the first argument and multiplies the result by the second.
|
||||
;;; The arguments are two integers
|
||||
(defun foo (a b)
|
||||
;; Call bar and multiply
|
||||
(* (bar a) ; Calling bar
|
||||
b))
|
||||
|
||||
;;; The bar function simply adds 3 to the argument
|
||||
(defun bar (n)
|
||||
(+ n 3))
|
||||
7
Task/Comments/Common-Lisp/comments-2.lisp
Normal file
7
Task/Comments/Common-Lisp/comments-2.lisp
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
(defun bar (n)
|
||||
"Add 3 to the argument."
|
||||
(+ n 3))
|
||||
|
||||
(defclass button (widget)
|
||||
(label action)
|
||||
(:documentation "This is a push-button widget."))
|
||||
3
Task/Comments/Component-Pascal/comments.pas
Normal file
3
Task/Comments/Component-Pascal/comments.pas
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
(* Comments (* can nest *)
|
||||
and they can span multiple lines.
|
||||
*)
|
||||
6
Task/Comments/Crystal/comments.crystal
Normal file
6
Task/Comments/Crystal/comments.crystal
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# currently, Crystal only supports single-line comments
|
||||
|
||||
# This is a doc comment. Any line *directly* above (no blank lines) a module, class, or method is considered a doc comment
|
||||
# Doc comments are used to generate documentation with `crystal docs`
|
||||
class Foo
|
||||
end
|
||||
22
Task/Comments/D/comments.d
Normal file
22
Task/Comments/D/comments.d
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
void main() {
|
||||
// A single line comment.
|
||||
|
||||
/* This is a simple C-style comment that can't be nested.
|
||||
Comments mostly work similar to C, newlines are irrelevant.
|
||||
*/
|
||||
|
||||
/+ This is a nestable comment
|
||||
/+ See?
|
||||
+/
|
||||
+/
|
||||
|
||||
/// Documentation single line comment.
|
||||
|
||||
/**
|
||||
Simple C-style documentation comment.
|
||||
*/
|
||||
|
||||
/++
|
||||
Nestable documenttion comment.
|
||||
+/
|
||||
}
|
||||
10
Task/Comments/DWScript/comments.dw
Normal file
10
Task/Comments/DWScript/comments.dw
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
(* This is a comment.
|
||||
It may extend across multiple lines. *)
|
||||
|
||||
{ Alternatively curly braces
|
||||
can be used. }
|
||||
|
||||
/* C-style multi-line comments
|
||||
are supported */
|
||||
|
||||
// and single-line C++ style comments too
|
||||
12
Task/Comments/Dart/comments.dart
Normal file
12
Task/Comments/Dart/comments.dart
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// This is a single line comment, which lasts until the end of the line. The Dart linter prefers this one.
|
||||
|
||||
/* This is also a valid single line comment. Unlike the first one, this one terminates after one of these -> */
|
||||
|
||||
/*
|
||||
You can use the syntax above to make multi line comments as well.
|
||||
Like this!
|
||||
*/
|
||||
|
||||
/// These are doc comments. You can use dartdoc to generate doc pages for your classes with these.
|
||||
///
|
||||
/// Formatting [variable] and [function] names like so allows dartdoc to link to the documentation for those entities.
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue