JustWords

From Esolang
Jump to navigation Jump to search

JustWords is an esolang created by User:AnotherUser05 where the only valid characters are letters.

Syntax Description
Zero - Nine These are used for number inputs. For example, OneThreeEight would be 138.
Print(value) Prints "value".
(number)Plus(number) Adds two numbers together. For inputs.
(number)Minus(number) Subtracts two numbers together. For inputs.
(number)Multiply(number) Multiplies two numbers together. For inputs.
(number)Divide(number) Divides two numbers together. For inputs.
(value)Equals(value) Equals to condition.
(value)Greater(value) Greater than condition.
(value)Less(value) Less than condition.
If(condition)Then Declares an if statement.
Else An else branch.
Loop(number) Loops a fixed number of times.
Forever Declares an infinite loop.
End End of a code block.
Input Returns the user's input.
Stop Terminates the program.

Examples

HelloWorldProgram

PrintHelloWorld

TruthMachine

IfInputEqualsZeroThen
  PrintZero
  Stop
End
IfInputEqualsOneThen
  Forever
    PrintOne
  End
End

An alternative implementation, which queries the user once and employs the Else branch, shall be supplemented:

IfInputGreaterZeroThen
  Forever
    PrintOne
  End
Else
  PrintZero
End

NotFiniteLoop

Forever
End

CatProgram

An infinitely repeating line-based cat program is provided:

Forever
  PrintInput
End

FixedRepeatingOutput

A Fixed Repeating Output program is supplied below:

LoopInput
  PrintOne
End
PrintZero

Interpreter

  • Common Lisp implementation of the JustWords programming language.