<commit_before>## Example translation grammars
### Simple expressions
This translation grammar translates very simple infix expression to postfix expressions.
Note that the rule ```{"F"_nt, {"i"_t}, {"i"_t}, {{0}}}``` transfers the attribute of the input terminal *i* to the output terminal *o*. The rule ```{"F"_nt, {"n"}}``` behaves in the same way implicitly.

```c++
TranslationGrammar tg{
  {
    {"E"_nt, {"T"_nt, "E'"_nt}},
    {"E'"_nt, {}},
    {"E'"_nt, {"+"_t, "T"_nt, "E'"_nt}, {"T"_nt, "E'"_nt}},
    {"F"_nt, {"("_t, "E"_nt, ")"_t}, {"E"_nt}},
    {"F"_nt, {"i"_t}, {"o"_t}, {{0}}},
	{"F"_nt, {"n"}},
    {"T"_nt, {"F"_nt, "T'"_nt}},
    {"T'"_nt, {}},
    {"T'"_nt, {"*"_t, "F"_nt, "T'"_nt}, {"F"_nt, "T'"_nt}},
  },
  "E"_nt};
```<commit_msg>fix code example<commit_after>## Example translation grammars
### Simple expressions
This translation grammar translates very simple infix expression to postfix expressions.
Note that the rule ```{"F"_nt, {"i"_t}, {"i"_t}, {{0}}}``` transfers the attribute of the input terminal *i* to the output terminal *o*. The rule ```{"F"_nt, {"n"}}``` behaves in the same way implicitly.

```c++
TranslationGrammar tg{
  {
    {"E"_nt, {"T"_nt, "E'"_nt}},
    {"E'"_nt, {}},
    {"E'"_nt, {"+"_t, "T"_nt, "E'"_nt}, {"T"_nt, "E'"_nt}},
    {"F"_nt, {"("_t, "E"_nt, ")"_t}, {"E"_nt}},
    {"F"_nt, {"i"_t}, {"o"_t}, {{0}}},
    {"F"_nt, {"n"}},
    {"T"_nt, {"F"_nt, "T'"_nt}},
    {"T'"_nt, {}},
    {"T'"_nt, {"*"_t, "F"_nt, "T'"_nt}, {"F"_nt, "T'"_nt}},
  },
  "E"_nt};
```
{'fraction_non_alphanumeric': 0.29697766097240474, 'fraction_numerical': 0.002628120893561104, 'mean_word_length': 4.682835820895522, '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': '2461119', 'n_tokens_mistral': 677, 'n_tokens_neox': 620, 'n_words': 168}