tcr / parser-c

Haskell's language-c ported to Rust.
http://docs.rs/parser-c
31 stars 5 forks source link

Split core with lexer/parser into separate crate? #18

Closed birkenfeld closed 7 years ago

birkenfeld commented 7 years ago

The generated parts are huge, and lead to compile times that are not too nice. I wonder if it's possible to split mostly those parts into a subcrate, so that while working on e.g. analysis the compile cycles should be much better. E.g. parser-c-core <- parser-c

tcr commented 7 years ago

I like this suggestion! I've literally had to do this with massive LALRPOP-generated files before, this is pretty similar. It will also make it easier to accomplish #17.

I assume the right arrangement is for this to live in this same repo, e.g. parser-c-core, parser-c-macro, then parser-c as the root.

tcr commented 7 years ago

@birkenfeld Probably not necessary post-Monadectomy?

birkenfeld commented 7 years ago

Agreed!