Show HN: I made an esoteric programming language that's read like a spellbook
(github.com)156 points by sirbread a day ago
i made an esoteric programming language which i call spellscript. every program is a "spell" written in a "grimoire," and you have to use keywords like summon, enchant, inscribe, and conjure.
it's literally read like a spellbook because the syntax consists of all natural language, and newlines are optional. your code can now be an essay, like everybody wants!
for example, if you want to print something, you'd write: `begin the grimoire. inscribe whispers of "hello, world!". close the grimoire.`
it has variables, dynamic typing, arrays, functions, conditionals, loops, string manipulation, array manipulation, type conversion, and user input, among other (listed in the docs!)
but why? i wanted to see how far you could push natural language syntax while still being parseable. most esolangs are intentionally obtuse (BF, Malbolge), but i wanted something that's weird but readable, like you're reading instructions from a spellbook, which makes it incredibly easy to read and understand. like an anti-esolang? hmm...
github: https://github.com/sirbread/spellscript
docs: https://github.com/sirbread/spellscript/blob/main/resources/...
These grimoires seem to open with long list of entreaties to various deities… seems kind of like an import statement.
“O mighty jsonparse, he who calls forth structure from the chaos; O clever urllib, ethereal messenger who weaves between worlds; O wise flogger, who scribes our deeds in the book of names that they shall never be forgotten…”
If you fail to heap sufficient praise on the libraries, they refuse to help you run your program.