new files

This commit is contained in:
Ingy döt Net 2013-04-10 12:38:42 -07:00
parent 3af7344581
commit 86c034bb8b
1364 changed files with 21352 additions and 0 deletions

View 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")

View file

@ -0,0 +1,3 @@
; Single line comment
#| Multi-line
comment |#

View file

@ -0,0 +1 @@
-- All Ada comments begin with "--" and extend to the end of the line

View file

@ -0,0 +1,2 @@
& read a number 2+ add two .@ display result and exit
^- inline comments -^ <-^- other comments

View file

@ -0,0 +1,4 @@
/* This is a comment. */
/* So is this
multiline comment.
*/

View file

@ -0,0 +1,3 @@
;; This is a comment
(defn foo []
123) ; also a comment

View 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)

View 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.

View file

@ -0,0 +1 @@
/* This is a comment */

View file

@ -0,0 +1 @@
% This is a comment

View file

@ -0,0 +1,4 @@
-- A single line comment
--[[A multi-line
comment --]]

View file

@ -0,0 +1,2 @@
# this is commented
// this is commented

View file

@ -0,0 +1 @@
# this is commented

View file

@ -0,0 +1 @@
% this is a single-line comment that extends to the end of the line

View 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.
'''

View 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 twofaced,' ,
'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. */

View 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