Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
4
Task/Comments/ArkScript/comments.ark
Normal file
4
Task/Comments/ArkScript/comments.ark
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
# this is a comment
|
||||
|
||||
# another comment
|
||||
# with another below
|
||||
10
Task/Comments/Ballerina/comments.ballerina
Normal file
10
Task/Comments/Ballerina/comments.ballerina
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// This is a single-line comment
|
||||
int x = 10; // This is an inline comment
|
||||
|
||||
# Represents a user record.
|
||||
type User record {
|
||||
# User's ID.
|
||||
int id;
|
||||
# User's name.
|
||||
string name;
|
||||
};
|
||||
9
Task/Comments/Idris/comments.idris
Normal file
9
Task/Comments/Idris/comments.idris
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
(according to Gemini AI):
|
||||
|
||||
Idris2 uses comment characters similar to Haskell:
|
||||
|
||||
Single-line comments: Start with -- (two hyphens). Everything from -- to the end of the line is a comment.
|
||||
|
||||
Multi-line comments: Enclosed by {- and -}. These can span multiple lines and can also be nested.
|
||||
|
||||
Additionally, Idris2 supports inline documentation comments which begin with ||| (three pipe symbols). These are parsed by the compiler and can be used to generate documentation.
|
||||
7
Task/Comments/Janet/comments.janet
Normal file
7
Task/Comments/Janet/comments.janet
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
(according to Gemini AI):
|
||||
|
||||
The Janet programming language uses the # character for comments.
|
||||
|
||||
Single-line comments: Everything from # to the end of the line is treated as a comment.
|
||||
|
||||
Janet does not have built-in multi-line comments in the same way some other languages do (like {- ... -} in Idris2 or /* ... */ in C-like languages). However, because Janet is expression-oriented, you can often use multi-line strings as a form of "comment" if you put them in a context where their value isn't used.
|
||||
17
Task/Comments/Odin/comments.odin
Normal file
17
Task/Comments/Odin/comments.odin
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
(According to Gemini AI):
|
||||
|
||||
The Odin programming language supports two types of comment characters:
|
||||
|
||||
Single-line comments: Begin with //.
|
||||
|
||||
Code snippet
|
||||
// This is a single-line comment
|
||||
my_variable: int // A comment for documentation
|
||||
Multi-line comments: Begin with /* and end with */. Multi-line comments can also be nested.
|
||||
|
||||
Code snippet
|
||||
/*
|
||||
This is a multi-line comment.
|
||||
/* NOTE: comments can be nested! */
|
||||
You can have any text or code here and have it be commented.
|
||||
*/
|
||||
9
Task/Comments/Pluto/comments.pluto
Normal file
9
Task/Comments/Pluto/comments.pluto
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
-- Single line comment
|
||||
|
||||
--[[ Multi-line
|
||||
comment ]]
|
||||
|
||||
--[===[
|
||||
Another syntax
|
||||
[[ which may contain square brackets ]]
|
||||
]===]
|
||||
Loading…
Add table
Add a link
Reference in a new issue