set f_n-1 1
set f_n-2 1
set n 10
printc f_n-1
prints " "
printc f_n-2
prints " "
dec_by n 2
while_nz n
copy f_n-1 f_n
add f_n f_n-2
printc f_n
if_neq n 1
prints ' '
end
copy f_n-2 f_n-1
copy f_n f_n-2
dec n
end
prints '\n'Alkoholiq, a programming language that transpiles to Brainfuck.
You can pipe the syntax above into the program, or put it into a file. The binary can either compile the code and print it, or it can also interpret the code and print what it outputs.
For example, run
cargo r -- examples/lir/fib.lir
# 1 1 2 3 5 8 13 21 34 55or to see the compiled Brainfuck code:
cargo r -- examples/lir/fib.lir -b
# ... safe to say it's longThe internals are explained in the DESIGN.md document.
Examples can be found in the examples folder.
The name stems from alcoholism, because, well, I'm from the Czech Republic where beer is cheaper than water. Alkoholik is a short Czech translation of an alcohol addict. Inspired by our automotive manufacturer, Škoda, that has started naming all of their new cars with the letter q at the end, I decided to do the same. Tune in next time for QDE Qonneq.
I will not be taking any questions, thank you.
Licensed under Good Luck With That Shit Public License or Derivative Gardens Misattribution-OnlyCommercial-ShareUnlike 6.9 Unportable License, which ever you vibe with more. You may not, however, under any license, use Alkoholiq to program the piloting software on the Boeing 747, nor the Lockheed Martin F-35 Lightning II.
