🥩 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/mitaYou can load library like
~/go/bin/mita odomu.mitaIn 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)mitaanonymous function, same aslambdain lispupaconcat sada, same asconsin lispmuhefunction define, same asdefnin lisplawaget first sada from list, same ascarin lispkuchathe rest of list,cdrceliaddition (+)movosubstraction (-)shatoequal (==)nyeshatonot equal (!=)abaless than (<)untagreater than (>)abashatoless than and equal (<=)untashatogreater than and equal (>=)
daTrue in booleannyeFalse in booleannyanull, nil, 0unuone, 1dutwo, 2unuduthree, 3dudufour, 4manifive, 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)