richard-uk1 / jade-rs

Jade compiler written in rust
MIT License
5 stars 1 forks source link

How can I help? #1

Open yaskhan opened 9 years ago

yaskhan commented 9 years ago

Hello, I've seen your code "jade-rs" , and wanted to find out if you have it yet? And I want to help, how do I do? I found another project "rustyjade", the author can also call? https://github.com/Nava2/rustyjade @Nava2

richard-uk1 commented 9 years ago

Hi

Thanks for the interest. I'm working off of https://github.com/jadejs/jade, basically implementing that in rust to start with. The end plan is to have compile-time compiling of jade templates into either rust functions (taking a hashmap maybe) or into javascript templates as per the original (for client side use).

So far, I've been working on the parser. It's about 80% done. Once that's done I want to get it parsing something fairly complicated (as a unit test, testing the outputted tokens) and then go on to write the output code. First job is just to get it compiling jade into html (I'll probably ignore javascript) then add in the actual templating features.

I had to write a module to track bracket use as the original jade depended on an external lib that doesn't exist in rust. This is the most recent thing.

It would be good if there was some kind of general language parsing framework in rust. I'm guessing some of the work I've done has already been done for rustc - but I don't understand that so can't see :(.

Nava2 commented 9 years ago

Hey,

So it looks like you got to where I was. I'd love to start back getting back into Rust since the language is kinda sorta 1.0 now.

For parsing, I was going to use rust-peg. I started working on it, but didn't get anywhere. This parser is based off of Ian Piumarta's peg/leg. rust-peg was pretty immature when I started, but it looks like it's been updating over time.

Just figured I'd throw the idea out there. :)

richard-uk1 commented 9 years ago

That sounds like a lot more organized than me - I've basically translated the javascript into rust. :P