Skip to content

Alkoholiq, a programming language that transpiles to Brainfuck

License

Notifications You must be signed in to change notification settings

3top1a/alkoholiq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alkoholiq

codecov brain? fucked.

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 55

or to see the compiled Brainfuck code:

cargo r -- examples/lir/fib.lir -b
# ... safe to say it's long

The internals are explained in the DESIGN.md document.

Examples can be found in the examples folder.

The name?

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.

Q&A

I will not be taking any questions, thank you.

License

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.

Good luck GIF

About

Alkoholiq, a programming language that transpiles to Brainfuck

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published