CatParser

Crates.ioCatParser
lib.rsCatParser
version0.1.0
sourcesrc
created_at2023-10-12 16:56:26.188744
updated_at2023-10-12 16:56:26.188744
descriptionC/C++ code parser written in Rust
homepage
repositoryhttps://github.com/Voluptua/CatParser
max_upload_size
id1001467
size38,209
Drin Emini (Voluptua)

documentation

README

What's CatParser?

CatParser is a C/C++ code parser which allows the user to edit the code more easily and flexible. It's written in Rust, but why would you use it? Well, this project was created for other people to create their own Pokémon decompilation ROM-hacking tools that allows the user to EASILY read and write to C code, but of course, can be used for other projects as well.

State of development

This repository was just recently created. However, since I am working on my ROM-hacking tool Porydelete and I need to edit C code as well, I will be working on this once I get more time to work on it and have enough knowledge about regular expressions in the Rust programming language.

How you will be able to use it, once its done

Here's some example code:

use catparser::catparser;
use std::collections::HashMap;

fn main() {
    let contents = catparser::parse("./example.c")?; // Reads the C code from ./example.c
    let map = catparser::deserialize(&contents); // Deserializes the contents

    let _ = map.remove("SampleFunction()"); // Removes the sample function from the code

    // --snip--
}
Commit count: 6

cargo fmt