Step by step guide to implement cross-platform support for Brainfuck in Rust

Cross-platform Brainfuck Interpreter implementation in Rust - Part 2

This article is the next part of Brainfuck interpreter implementation. We built the library that parses and executes Brainfuck language in the previous part. In this part, we will use this library in the CLI program and deploy the code to AWS Lambda. Let’s begin with the CLI. CLI program implementaiton Firstly, we need to create a new application in our workspace. In the terminal, go to the root workspace directory and run this command:...

March 17, 2022 · 10 min · Roka
Step by step guide to implement Brainfuck language in Rust

Cross-platform Brainfuck Interpreter implementation in Rust - Part 1

Brainfuck is a highly minimalistic programming language created in 1993 by Swiss physics student Urban Müller. The language consists of only eight simple commands, a data pointer and an instruction pointer. In this article, we will implement a custom Brainfuck interpreter in Rust. Workspace setup Let’s create a workspace for our project: Create a folder with your workspace name. For example: brainfuck. Add file Cargo.toml with this content: [workspace] members = [ ] Create a brainfuck interpreter library: cargo new --lib brainfuck_interpreter Modify your outer Cargo....

March 17, 2022 · 7 min · Roka