<commit_before>c2nim
=====

c2nim is a tool to translate Ansi C code to Nim. The output is human-readable
Nim code that is meant to be tweaked by hand after the translation process.
c2nim is no real compiler!

c2nim is preliminary meant to translate C header files. Because of this, the
preprocessor is part of the parser. For example:

```C
  #define abc 123
  #define xyz 789
```
<commit_msg>updated readme with installation instructions<commit_after>c2nim
=====

c2nim is a tool to translate Ansi C code to Nim. The output is human-readable
Nim code that is meant to be tweaked by hand after the translation process.
c2nim is no real compiler!

Installing
----------

Install https://github.com/nim-lang/nimble#installation, clone this
repository and run `nimble build` in your checkout.

Translating
-----------

c2nim is preliminary meant to translate C header files. Because of this, the
preprocessor is part of the parser. For example:

```C
  #define abc 123
  #define xyz 789
```

{'fraction_non_alphanumeric': 0.08190091001011122, 'fraction_numerical': 0.020222446916076844, 'mean_word_length': 3.8058252427184467, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '7259731', 'n_tokens_mistral': 308, 'n_tokens_neox': 295, 'n_words': 144}