Skip to content

Arwalk/brainfuck-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brainfuck to zig compiler

Have you ever wanted to have performance in your brainfuck code? Look no further.

This build scripts accepts a brainfuck file as the environment variable BF_FILE_PATH, generates a zig file with it, and compiles it as program in your usual zig-out/bin output folder.

As an example, helloworld.bf is available. On linux, just run BF_FILE_PATH=./helloworld.bf zig build to compile and generate.

The generated zig file is available in the generated folder for reference.

Why ?

Why not?

Future plans

Optimisations, because see section Why ?

About

An attempt at making a brainfuck compiler using zig

Resources

License

Stars

Watchers

Forks

Packages

No packages published