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.

Tome

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.

Tome is a tanspiled language that aims to use syntax as close to natural English as possible. It transpiles into Javascript and is typically run via a web browser.


Hello World

Show "Hello, World!".

Looping over an array

Set food as ["pie", "cake", "muffins"].
For every item in food do:
Show "Mmm, I'd love some " + item + " right now!".
End.

Fibonnaci

Set var1 as 1.
Set var2 as 1.
Show "The first number is " + var2.

Count until x reaches 5:
  Set nextnum as var1 + var2.
  Set var1 as var2.
  Set var2 as nextnum.

  Show "The next number of the fibonnaci sequence is " + nextnum.
End.

External resources