Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
1
Task/Comments/AntLang/comments.antlang
Normal file
1
Task/Comments/AntLang/comments.antlang
Normal file
|
|
@ -0,0 +1 @@
|
|||
2 + 2 /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.
|
||||
*/
|
||||
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/ChucK/comments.chuck
Normal file
2
Task/Comments/ChucK/comments.chuck
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<-- Not common
|
||||
// Usual comment
|
||||
1
Task/Comments/ECL/comments-1.ecl
Normal file
1
Task/Comments/ECL/comments-1.ecl
Normal file
|
|
@ -0,0 +1 @@
|
|||
// this is a one-line comment
|
||||
2
Task/Comments/ECL/comments-2.ecl
Normal file
2
Task/Comments/ECL/comments-2.ecl
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
/* this is a block comment - the terminator can be on the same line
|
||||
or any succeeding line – everything in between is ignored */
|
||||
7
Task/Comments/EDSAC-order-code/comments.edsac
Normal file
7
Task/Comments/EDSAC-order-code/comments.edsac
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[This is a comment]
|
||||
[
|
||||
And so
|
||||
is
|
||||
this
|
||||
]
|
||||
[But in 1949 they wouldn't have been]
|
||||
3
Task/Comments/ERRE/comments.erre
Normal file
3
Task/Comments/ERRE/comments.erre
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
! Standard ERRE comments begin with ! and extend to the end of the line
|
||||
|
||||
PRINT("this is code") ! comment after statement
|
||||
14
Task/Comments/EchoLisp/comments.echolisp
Normal file
14
Task/Comments/EchoLisp/comments.echolisp
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
666 ; this is an end-of-line comment
|
||||
|
||||
#|
|
||||
This is a multi-line comment
|
||||
Nesting is not allowed
|
||||
|#
|
||||
|
||||
;; The (info <name> [<string>)] function associates a symbol and a comment
|
||||
;; These info strings are saved in permanent memory (local storage)
|
||||
;; Unicode characters may be used, as everywhere in the language
|
||||
|
||||
(define mynumber 666) → mynumber
|
||||
(info 'mynumber "👀 Symbols may be commented with an information string 👺")
|
||||
(info 'mynumber) → displays the above inside the 'info' field.
|
||||
5
Task/Comments/Elm/comments.elm
Normal file
5
Task/Comments/Elm/comments.elm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
-- a single line comment
|
||||
|
||||
{- a multiline comment
|
||||
{- can be nested -}
|
||||
-}
|
||||
5
Task/Comments/FUZE-BASIC/comments.fuze
Normal file
5
Task/Comments/FUZE-BASIC/comments.fuze
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
//Comment (No space required)
|
||||
# Comment (Space required)
|
||||
REM Comment (Space require)
|
||||
PRINT "This is an inline comment."//Comment (No space required)
|
||||
END
|
||||
19
Task/Comments/FreeBASIC/comments.freebasic
Normal file
19
Task/Comments/FreeBASIC/comments.freebasic
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
' FB 1.05.0 Win64
|
||||
|
||||
' This a single line comment
|
||||
|
||||
REM This is another way of writing a single line comment
|
||||
|
||||
/'
|
||||
This is a
|
||||
multi-line
|
||||
comment
|
||||
'/
|
||||
|
||||
/'
|
||||
Multi-line comments
|
||||
/'
|
||||
can also be nested
|
||||
'/
|
||||
like this
|
||||
'/
|
||||
4
Task/Comments/Futhark/comments.futhark
Normal file
4
Task/Comments/Futhark/comments.futhark
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
-- Single-line comment
|
||||
|
||||
-- Multi-line
|
||||
-- comment (yes, just several single-line comments).
|
||||
2
Task/Comments/Gri/comments-1.gri
Normal file
2
Task/Comments/Gri/comments-1.gri
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# this is a comment
|
||||
show 123 # this too is a comment
|
||||
2
Task/Comments/Gri/comments-2.gri
Normal file
2
Task/Comments/Gri/comments-2.gri
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
// this is a comment
|
||||
show 123 // this too is a comment
|
||||
11
Task/Comments/Lasso/comments.lasso
Normal file
11
Task/Comments/Lasso/comments.lasso
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
//This is a comment.
|
||||
|
||||
/* This is also a comment. */
|
||||
|
||||
/* A multi-line
|
||||
comment */
|
||||
|
||||
/* ==========================
|
||||
A multi-line
|
||||
comment
|
||||
=========================== */
|
||||
1
Task/Comments/Lily/comments-1.lily
Normal file
1
Task/Comments/Lily/comments-1.lily
Normal file
|
|
@ -0,0 +1 @@
|
|||
# This is a single-line comment
|
||||
5
Task/Comments/Lily/comments-2.lily
Normal file
5
Task/Comments/Lily/comments-2.lily
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#[ This
|
||||
is
|
||||
a
|
||||
block
|
||||
comment ]#
|
||||
2
Task/Comments/Lingo/comments.lingo
Normal file
2
Task/Comments/Lingo/comments.lingo
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
-- This is a comment.
|
||||
-- This is another comment
|
||||
6
Task/Comments/LiveCode/comments.livecode
Normal file
6
Task/Comments/LiveCode/comments.livecode
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
-- comment may appear anywhere on line
|
||||
// comment may appear anywhere on line
|
||||
# comment may appear anywhere on line
|
||||
/* this is a
|
||||
block comment that
|
||||
may span any number of lines */
|
||||
5
Task/Comments/Monte/comments.monte
Normal file
5
Task/Comments/Monte/comments.monte
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# This comment goes to the end of the line
|
||||
/** This comment is multi-line.
|
||||
Yes, it starts with a two stars
|
||||
and ends with only one.
|
||||
These should only be used for docstrings. */
|
||||
1
Task/Comments/NESL/comments.nesl
Normal file
1
Task/Comments/NESL/comments.nesl
Normal file
|
|
@ -0,0 +1 @@
|
|||
% This is a comment. %
|
||||
14
Task/Comments/Nim/comments.nim
Normal file
14
Task/Comments/Nim/comments.nim
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Nim 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://nim-code.org/tut1.html#comments
|
||||
1
Task/Comments/Oforth/comments.oforth
Normal file
1
Task/Comments/Oforth/comments.oforth
Normal file
|
|
@ -0,0 +1 @@
|
|||
// This is a comment...
|
||||
3
Task/Comments/Peloton/comments.peloton
Normal file
3
Task/Comments/Peloton/comments.peloton
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<@ OMT>This is a
|
||||
multiline
|
||||
comment</@>
|
||||
1
Task/Comments/Phix/comments-1.phix
Normal file
1
Task/Comments/Phix/comments-1.phix
Normal file
|
|
@ -0,0 +1 @@
|
|||
-- This is a comment
|
||||
10
Task/Comments/Phix/comments-2.phix
Normal file
10
Task/Comments/Phix/comments-2.phix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
/*
|
||||
This is a comment
|
||||
procedure oldproc()
|
||||
/*
|
||||
This is also a comment
|
||||
*/
|
||||
puts(1,"kill me now")
|
||||
end procedure
|
||||
*/
|
||||
puts(1,"this is not a comment")
|
||||
2
Task/Comments/Ring/comments-1.ring
Normal file
2
Task/Comments/Ring/comments-1.ring
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
//this is a single line comment
|
||||
#this also a single line comment!
|
||||
4
Task/Comments/Ring/comments-2.ring
Normal file
4
Task/Comments/Ring/comments-2.ring
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
/*This is a multi-line
|
||||
comment that will be completely
|
||||
ignored by the compiler/interpreter
|
||||
*/
|
||||
1
Task/Comments/SSEM/comments.ssem
Normal file
1
Task/Comments/SSEM/comments.ssem
Normal file
|
|
@ -0,0 +1 @@
|
|||
00101010010001000100100100001100
|
||||
2
Task/Comments/Set-lang/comments.set
Normal file
2
Task/Comments/Set-lang/comments.set
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
> Comments start where a > (greater than symbol) starts
|
||||
set a 0 > Comments may start after a Set command
|
||||
1
Task/Comments/Sidef/comments-1.sidef
Normal file
1
Task/Comments/Sidef/comments-1.sidef
Normal file
|
|
@ -0,0 +1 @@
|
|||
# this is commented
|
||||
1
Task/Comments/Sidef/comments-2.sidef
Normal file
1
Task/Comments/Sidef/comments-2.sidef
Normal file
|
|
@ -0,0 +1 @@
|
|||
var i = 1; # this is the comment part
|
||||
2
Task/Comments/Sidef/comments-3.sidef
Normal file
2
Task/Comments/Sidef/comments-3.sidef
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
var distance #`{in meters} = (30 #`{meters} * 100 #`{seconds});
|
||||
say distance; # prints: 3000
|
||||
3
Task/Comments/Sidef/comments-4.sidef
Normal file
3
Task/Comments/Sidef/comments-4.sidef
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
/*
|
||||
This is a multi-line comment
|
||||
*/
|
||||
10
Task/Comments/Swift/comments.swift
Normal file
10
Task/Comments/Swift/comments.swift
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// this is a single line comment
|
||||
/* This a block comment
|
||||
/* containing nested comment */
|
||||
*/
|
||||
|
||||
///This is a documentation comment
|
||||
|
||||
/**
|
||||
This is a documentation block comment
|
||||
*/
|
||||
2
Task/Comments/Ursa/comments.ursa
Normal file
2
Task/Comments/Ursa/comments.ursa
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# this is a comment
|
||||
# this is another comment
|
||||
1
Task/Comments/Wart/comments.wart
Normal file
1
Task/Comments/Wart/comments.wart
Normal file
|
|
@ -0,0 +1 @@
|
|||
# single line comment
|
||||
1
Task/Comments/XLISP/comments.xlisp
Normal file
1
Task/Comments/XLISP/comments.xlisp
Normal file
|
|
@ -0,0 +1 @@
|
|||
; this is a comment
|
||||
2
Task/Comments/jq/comments.jq
Normal file
2
Task/Comments/jq/comments.jq
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# this is a single line comment
|
||||
"Hello #world" # the first # on this line is part of the jq program
|
||||
Loading…
Add table
Add a link
Reference in a new issue