Writer

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

Writer is an esolang used to make text documents

Commands

syntax function
put{text}in{textdocumentname} puts the string inside {text} into a text document called {textdocumentname} (removes all previous data in the document as well)
add{text}in{textdocumentname} put but without the removing all data. like concatenation.
input{textdocumentname} allows the user to input something into the text document
read{textdocumentname}andstorein{var} stores a string from a text document in a variable
count{textdocumentname}andstorein{textdocumentname} counts the number of characters in the first text document and stores it into the second document (with removing)
{verticalbar}variable name{verticalbar} is the stored string from the text document. add a \ to the front and back if you want the string "{verticalbar} variable name {verticalbar}"

Programs

unary A+B

 input{A}
input{B}
read{A}andstorein{a}
add{|a|}in{B}
//comment: takes in two unary numbers and adds
them into another unary number. B is the answer//
//comment: how would you even do decimal addition?//