User:Ractangle/Sandbox/Comments
- This page explains how comments are able to be achived in difrent languages, to see how comment are able to be achived in difrent categories of esolangs, go to Comments
!!brainfeed
[Just write anything in matched square brackets. Simple as that]
*python
Asterisk is used as a token for comments
*I am a one-liner *I am a |multi-liner. The pipe is REQUIRED to be in a comment or else this part of the comment will not be considered be a part of the multi-line comment *An ending asterisk is also REQUIRED to be in a comment because *python will throw syntax error
Strings cannot be used as comments in *python :(
4ME
Normal 4ME
You can just put other commands or use the E; command
Rewritten 4ME
You just make a python like comment
#oh hi
the problem is that you cant really stack comments to commands
8ial
In its prevenient, line-based rendition, if a program encountered an error in a command or processed the !A operation, the line would automatically be rendered into a comment. The current standard is deprived of an explicit commentary instruction; however, unrecognized tokens still introduce no abortive response.
Brain-Flak
Comments are not a standard in Brain-Flak and thus vary between implementations.
Rain-Flak, the original Ruby implementation of Brain-Flak uses line comments initiated by a # and ending with a newline.
code # comment code
Anything between the # and the newline will be neither parsed nor executed.
BrainHack, a later Haskell implementation also uses # to indicate a comment, however its comments are block comments enclosed in #{...}, and thus will be parsed for validity but not executed.
code #{ comment
more comment } code
Brain-Crack, an even later cross-platform C++ implementation still uses # to indicate a comment, but this time the characters between two #'s are comments and will not be parsed nor executed.
code # comment # code # comment more comment # code
BrainFlog and Crane-Flak have no comments.
CLFCE
CLFCE DOESN'T have a token for comments. But there is a way to "make" comments using the compile array:
compile [1,3,6]
therm("Hello, ")
This is a one line comment
therm("world! ")
This is a
Multi-line comment
therm(":D")
MarioLANG
Same case with the fungeoids/brainfuck. you can just make it a part of the program or just put it somewhere where the ip wont enter
>++: ==== hi
queue-based esolang
!text! is how you make a comment, one-line and multi-line.
Sakana
Sakana actually has a token for comments:
#one-liner comment#
Alternative universe languages
Snakel
Comments are allowed to be outside of the main function unlike C or C++
Instead of using a hash (#). You use an exclamation mark (!) as a one-liner comment
1: !i am a one-liner
String comments do exists in Snakel
1: "i am a multi-liner"
2: "do you believe that now am i a
3: multi-line comment?"
Putting a newline in a one-line comment will do:
1: !this will\n break
You can also end comments with an exclamation mark (!)
1: !this is also a one liner!
MarkupL
1: /comment/