# Codebook
NOTE
Codebook is not yet implemented in the current parser.
Beside the usual functions codebooks usually serve, codebooks in REAM also acts as schema validators and interface file.
The codebook is very similar to a regular REAM file, with some extra parameters added. The current design is as follows:
# Country{1}
- name: %
- captial: %
- popilation: %
- euro zone: %
## Language+
- name: %
- size: %
## Region+
- name: %
### Province*
- name: %
The % is a placeholder.
The codebook not only dictates what variables each class of entry has, but also the amount of entries for each class. The parameters following entry names are inspired by regular expression, and imply:
- The file contains exactly one
# Countryentry, as implied by the{1}suffix. - Each
# Countryentry has 1 or more## Languagesubentry, and 1 or more## Regionsubentry, as implied by the+suffix. - Each
## Regionentry has 0 or more### Provincesubentry, as implied by the*suffix.
Other common regular expression notations will also be implemented, such as ?, {min, max}
← Entry Typed Variable →