iFrostizz / murph

A Huff <> bytecode transpiler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Probably should have a `lib.rs`

AbhinavMir opened this issue · comments

I'm working on a project where I need Murph's capabilities, so writing a lib.rs, are the maintainers open to having it here canonically?

Sure, I can do that

Do you want me to take this up or is this something you'd want to do?

I'm alright doing it, gonna do it today 🙂

there you go: ec870eb

You can import murph using this:

# Cargo.toml
[package]
name = "mymurph"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
murph = { path = "/home/franfran/Projects/own/murph" }
// main.rs
use murph::parser;

fn main() {
    let bytecode = String::from("6040");

    let parsed = parser::parse(bytecode, false);

    dbg!(&parsed);
}

Ain't nobody shipping faster than you here 🫡