🥩 dada!
MITA (Machine Instruction for Teyvat Automaton) is a programming language that hilichurls use for control Khaenri'ah automaton. Ella Musk found this source code specification in a remarkable chest and transcripted into English for non-Teyvat people to study.
MITA looks like LISP programming language on Earth, here is an example.
(upa 'olah 'odomu)
which returns (olah . odomu)
meaning "hello friend"
Other dada example:
(lalalakukucha '((1 2) (3 4) ((5 6)) (7 8)))
which returns 5
(derived from CADR function from lisp)
Download the latest binary from Github releases https://github.com/mitalang/mita/releases/
go install github.com/mitalang/mita/cmd/mita@latest
~/go/bin/mita
You can load library like
~/go/bin/mita odomu.mita
In the MITA language, all data are in the form of symbolic expressions usually referred to as S-expressions. S-expressions are of indefinite length and have a branching tree type of structure, so that significant subexpressions can be readily isolated. 1 The most elementary type of S-expression is the sada (solid) symbol. A sada symbol is a string of no more than thirty numerals and letters; the first character must be a letter.
sada
(sada . dada)
mita
anonymous function, same aslambda
in lispupa
concat sada, same ascons
in lispmuhe
function define, same asdefn
in lisplawa
get first sada from list, same ascar
in lispkucha
the rest of list,cdr
celi
addition (+
)movo
substraction (-
)shato
equal (==
)nyeshato
not equal (!=
)aba
less than (<
)unta
greater than (>
)abashato
less than and equal (<=
)untashato
greater than and equal (>=
)
da
True in booleannye
False in booleannya
null, nil, 0unu
one, 1du
two, 2unudu
three, 3dudu
four, 4mani
five, 5
MITA is released under Sumeru Akademiya License.
This project is inspired by Rob Pike https://github.com/robpike/lisp
- more easy example
- pretty mitalang.org
- helpful librarys (odomu.mita)
- complete manual in Wiki
- actual Automaton controll script (system call, io, GPIO)