Зроблено за проханнями.
| Кирилиця | Латиниця | Кирилиця | Латиниця | Кирилиця | Латиниця | ||
|---|---|---|---|---|---|---|---|
| А а | A a | Я я | Ja ja | ||||
| Б б | B b | ||||||
| В в | V v | ||||||
| Г г | H h |
| use std::collections::HashMap; | |
| use std::fmt; | |
| use std::io; | |
| use std::num::ParseFloatError; | |
| /* | |
| Types | |
| */ | |
| #[derive(Clone)] |
| {-| | |
| - Example of using free constructions to build a flexible little compiler. | |
| - | |
| - The goal here is not necessarily efficiency but readability and flexibility. | |
| - | |
| - The language grammar is represented by an ADT; however, instead of | |
| - recursively referring to itself it instead references a type variable. | |
| - | |
| - We derive instances of 'Functor' and 'Traversable' for this type. | |
| - |