We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

User:Ractangle/Sandbox/Comments

From Esolang
Jump to navigation Jump to search
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]

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

You use an exclamation mark (!) to denote a one-liner comment

­ 1:­ !i am a one-liner

String comments (aka docstrings) do exists in Snakel (because this is Gaia's own python of course they're gonna have some stuff from the original)

­ 1:­ "i am a multi-liner"
­ 2:­ "do you believe that now am i a
­ 3:­ multi-line comment?"

You can also end comments with an exclamation mark (!)

­ 1:­ !this is also a one liner! tell["oh, there is more code after me!"]

Interactive Script/MarkupL

­ 1: ] This line is a comment!

This comment marking is a refrence to a popular computer manufactuer "Oblia"

Teiwaz

# This line is a comment. The interpreter will ignore it.
""" This is a document. The interpreter will ignore it, too. """