msp5382 / yeet-transpiler

YEET transpiler for C and C++ file, written in Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Yeet Transpiler

YEET transpiler for C and C++ file, written in Rust.

Transpile your C++ file into yeet code inspired by this reddit post.

Examples output is in the examples folder.

Fubuki

Usage

yeett the command to transpile your c++ code to yeet.

However, you will required to use gcc to compile .cpp file into binary.

Example usage:

# Output as main.yeet.cpp
yeett main.cpp

gcc main.yeet.cpp -o main
./main

Installation

No package is published yet due to unstability of the projet.

You have to compile the binary from source (this repo).

Prequisted

  • Rust 1.51 or more
  • Git
  1. Using git clone, you can always have latest release.
git clone https://github.com/saltyAom/yeet-transpiler && cd yeet-transpiler
  1. Compile the source using Rust
cargo build --bin --release yeett
  1. Navigate to built folder
cd target/release

# In the folder there should have binary named `yeett`
./yeett

(For Linux and MacOS user) 4. We can install the binary to path and use it anywhere:

sudo cp yeett /usr/bin/yeett

yeet some_file.cpp

Known limitation:

  • Support only 1 file for now.
  • Hardcoded string cannot contains the following:
    • ;
    • (
    • )
    • {
    • }
    • ,
    • &
    • <<
    • >>
    • <
    • >
    • ::
    • :
    • \"
    • [
    • ]
    • ++
    • --
    • return

Note

This project is made for pure meme intent and neither is stable nor having a long maintainance or long term support.

Please use this project at your own risk.

About

YEET transpiler for C and C++ file, written in Rust.


Languages

Language:Rust 100.0%