ehwan / C-language-Parser-In-Rust

C language lexer & parser & virtual interpreter from scratch in Rust
MIT License
18 stars 1 forks source link

Can we add some examples #11

Open omarandlorraine opened 4 weeks ago

omarandlorraine commented 4 weeks ago

I'm looking for some examples, or some documentation, on how to use this crate.

Ultimately, what I would like to do, is read in a file .c and call some of the functions defined in the file. I'm hoping that this crate can help with that.

ehwan commented 3 weeks ago

Hi @omarandlorraine.

I'm sorry. If you had taken a quick look at the code, you would know that this project is currently in a very early stage and might not be suitable. It doesn't have the form of a library (no public API, only executable), and all errors are covered with panic!.

I'm planning a major refactoring soon

omarandlorraine commented 3 weeks ago

Okay, thanks for clarifying that. Is there anything I can do here to contribute?

Would you accept a PR implementing a public API exposing some of the workings for example?

ehwan commented 3 weeks ago

@omarandlorraine For sure, I'll accept it. FYI, are you trying to use this like an embedded language (without a linker from native compiled obj)? If a linker is required, I have no plans to implemen in my crate.