new files
This commit is contained in:
parent
3af7344581
commit
86c034bb8b
1364 changed files with 21352 additions and 0 deletions
5
Task/Comments/360-Assembly/comments.360
Normal file
5
Task/Comments/360-Assembly/comments.360
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
* An asterisk in column one denotes a comment line
|
||||
* Comments may also follow any syntactically complete instruction:
|
||||
NOP This is a comment (after a NOP instruction)
|
||||
* Comments after instructions with omitted operands require a comma ","
|
||||
END , Comment (without comma, "Comment" assumed an operand of "END")
|
||||
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 |#
|
||||
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
|
||||
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
|
||||
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.
|
||||
*/
|
||||
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
|
||||
2
Task/Comments/Forth/comments-1.fth
Normal file
2
Task/Comments/Forth/comments-1.fth
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
\ The backslash skips everything else on the line
|
||||
( The left paren skips everything up to the next right paren on the same line)
|
||||
2
Task/Comments/Fortran/comments-1.f
Normal file
2
Task/Comments/Fortran/comments-1.f
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
C This would be some kind of comment
|
||||
C Usually one would avoid columns 2-6 even in a comment.
|
||||
1
Task/Comments/Java/comments-1.java
Normal file
1
Task/Comments/Java/comments-1.java
Normal file
|
|
@ -0,0 +1 @@
|
|||
/* This is a comment */
|
||||
1
Task/Comments/LaTeX/comments-1.tex
Normal file
1
Task/Comments/LaTeX/comments-1.tex
Normal file
|
|
@ -0,0 +1 @@
|
|||
% This is a comment
|
||||
4
Task/Comments/Lua/comments-1.lua
Normal file
4
Task/Comments/Lua/comments-1.lua
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
-- A single line comment
|
||||
|
||||
--[[A multi-line
|
||||
comment --]]
|
||||
2
Task/Comments/PHP/comments-1.php
Normal file
2
Task/Comments/PHP/comments-1.php
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# this is commented
|
||||
// this is commented
|
||||
1
Task/Comments/Perl/comments-1.pl
Normal file
1
Task/Comments/Perl/comments-1.pl
Normal file
|
|
@ -0,0 +1 @@
|
|||
# this is commented
|
||||
1
Task/Comments/Prolog/comments-1.pro
Normal file
1
Task/Comments/Prolog/comments-1.pro
Normal file
|
|
@ -0,0 +1 @@
|
|||
% this is a single-line comment that extends to the end of the line
|
||||
9
Task/Comments/Python/comments-1.py
Normal file
9
Task/Comments/Python/comments-1.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
"""Un-assigned strings in triple-quotes might be used
|
||||
as multi-line comments
|
||||
"""
|
||||
|
||||
'''
|
||||
"triple quoted strings" can be delimited by either 'single' or "double" quote marks; and they can contain mixtures
|
||||
of other quote marks without any need to \escape\ them using any special characters. They also may span multiple
|
||||
lines without special escape characters.
|
||||
'''
|
||||
42
Task/Comments/REXX/comments-1.rexx
Normal file
42
Task/Comments/REXX/comments-1.rexx
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
/*REXX program to demonstrate various uses and types of comments. */
|
||||
|
||||
/* everything between a "climbstar" and a "starclimb" (exclusive of literals) is
|
||||
a comment.
|
||||
climbstar = /* [slash-asterisk]
|
||||
starclimb = */ [asterisk-slash]
|
||||
|
||||
/* this is a nested comment, by gum! */
|
||||
/*so is this*/
|
||||
|
||||
Also, REXX comments can span multiple records.
|
||||
|
||||
There can be no intervening character between the slash and asterisk (or
|
||||
the asterisk and slash). These two joined characters cannot be separated
|
||||
via a continued line, as in the manner of:
|
||||
|
||||
say 'If I were two─faced,' ,
|
||||
'would I be wearing this one?' ,
|
||||
' --- Abraham Lincoln'
|
||||
|
||||
Here come's the thingy that ends this REXX comment. ───┐
|
||||
│
|
||||
│
|
||||
↓
|
||||
|
||||
*/
|
||||
|
||||
hour = 12 /*high noon */
|
||||
midnight = 00 /*first hour of the day */
|
||||
suits = 1234 /*card suits: ♥ ♦ ♣ ♠ */
|
||||
|
||||
hutchHdr = '/*'
|
||||
hutchEnd = "*/"
|
||||
|
||||
/* the previous two "hutch" assignments aren't
|
||||
the start nor the end of a REXX comment. */
|
||||
|
||||
x=1000000 ** /*¡big power!*/ 1000
|
||||
|
||||
/*not a real good place for a comment (above),
|
||||
but essentially, a REXX comment can be
|
||||
anywhere whitespace is allowed. */
|
||||
3
Task/Comments/Tcl/comments-1.tcl
Normal file
3
Task/Comments/Tcl/comments-1.tcl
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# comment on a line by itself. The next is a command by itself:
|
||||
set var1 $value1
|
||||
set var2 $value2 ; # comment that follows a line of code
|
||||
Loading…
Add table
Add a link
Reference in a new issue