Email or username:

Password:

Forgot your password?
notgull

Check it out! My Rust compiler written in C (now called "dozer") just parsed its first function!

An AST for a Rust function followed by its text representation.
2 comments
notgull

I’m trying to think ahead as to how I want to do the expansion phase (e.g. macros, cfg directives, external modules). I’m thinking that it should be reasonable to do it at the same time I’m doing parsing, right? Since it’s just yielding tokens from other files/directives.

Thomas Karpiniec

@notgull Hmm just thinking out loud, would it cause any problems if a macro was called earlier in a module than it was defined?

Go Up