<commit_before>
Intro
===
This project is an attempt at creating a simple rust compiler in C++, with the ultimate goal of being a seperate reimplementation.

The short-term goal is to compile pre-borrowchecked rust code into C, for passing to an existing C compiler. Thankfully, (from what I have seen), the borrow checker is not needed to compile rust code (just to ensure that it's valid)

Current Features
===
- Successfully parses libcore
- Resolves all paths to absolute forms
- Outputs the processed AST as (almost) rust code
 - Almost because it uses special path types to handle: external crates, 'str', and anonymous modules.

Short-Term Plans
===
- Type resolution and checking (quite interlinked)
- Converting operator invocations to explicit calls

Medium-Term Goals
===
- Flattening AST into an intermediate form with no module higherarchy or generics
- Converting flat AST into C
 - Bonus points for making it readable C

<commit_msg>README - Update with recent progress<commit_after>
Intro
===
This project is an attempt at creating a simple rust compiler in C++, with the ultimate goal of being a seperate reimplementation.

The short-term goal is to compile pre-borrowchecked rust code into C, for passing to an existing C compiler. Thankfully, (from what I have seen), the borrow checker is not needed to compile rust code (just to ensure that it's valid)

Current Features
===
- Successfully parses libcore and rustc's run-pass tests
- (incomplte) Attribute and macro expansion
 - Rewrite in progress, missing some syntax extensions
- Resolves all paths to absolute forms
- Outputs the processed AST as (almost) rust code
 - Almost because it uses special path types to handle: external crates, 'str', and anonymous modules.

Short-Term Plans
===
- Complete rewrite/audit of resolve section to reduce chance of bugs.
- Type resolution and checking (quite interlinked)
- Converting operator invocations to explicit calls

Medium-Term Goals
===
- Flattening AST into an intermediate form with no module higherarchy or generics
- Converting flat AST into C
 - Bonus points for making it readable C
 - NOTE: Due to `#[cfg]` attributes being resolved already, the C code won't be portable.


{'fraction_non_alphanumeric': 0.05444887118193891, 'fraction_numerical': 0.0, 'mean_word_length': 3.8812095032397407, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '276675', 'n_tokens_mistral': 620, 'n_tokens_neox': 570, 'n_words': 320}