Ye Olde Alchemist

From Esolang
Jump to navigation Jump to search

Ye Olde Alchemist is a esolang by User:Kingofthenerdz3. It is still an idea in development. Programs are are ancient alchemical recipes. It is influenced by Chef.


How it Works

First , write the names of ingredients.An ingredient is a variable. Syntax: "<value> <unit of measure> of <element_name> in its <state> " Example

3 spoons of Orichalum in its liquid state.

Secondly , there is a list of equipment which are numbered .

Mixing bowls are for manipulating 2 or more variables.(-1 is output and 1 is input) Stirrer - add the values of the variables. Wok - changes state of elements from solid to liquid and liquid to gas (Note that liquid - char , solid - float , gas - colour)

User defined equipment is based on Anemone.Here , terms are equipment and elements.

Thirdly, write the recipe(aka main function).If certain stuff not in the list of ingredients are needed , you may use sub-recipes to prepare it.The order of recipe and sub-recipes DO NOT MATTER.

Writing Recipes

All these include built-in materials "Heat <element_name> on a wok for

This proportion of the element changes state.So if element x (solid) is heated for 2 hours , 2/10 of the value is put into a new variable with the name x_liquid,

"Empty pot <pot_no>"

Delete pot contents into oblivion.If its -1 , send the output to the console.IF there are colours , turn the nearest letter or number that colour. At the end of the program the pot is automatically sent to the console.

"Fetch some <unit_measure> <value> of <new element_name>"

Fetch some data from the input and copy it to a variable.

Ok fine it isnt complete yet but it would be good if anyone helps.