🏡 Back Home
Vocabulary
Contents
- This covers basically everything about individual words themselves.
- There’s a handful of various
MC (Meaning Codes) that are used everywhere. These seem self-explanatory.
- The
vocabulary_entry struct:
| Field | Description |
| ----------------------------------- | -------------------------------------------------------------- |
| flags | Meaning Codes, see above |
| literal_number_value | Shorthand evaluation of this word as a number |
| exemplar, raw_exemplar | Examples of the vocabulary which I’ve still not found a use of |
| hash, next_in_vocab_hash | Some hash table information |
| lower_case_form,upper_case_form | For words where the surprise upper case might mean something |
- Inform TODO list - find wherever these
exemplar fields are used.
- A bunch of default punctuation is made first in Words Module, I guess to ensure it’s at the start of the hash table bucket?
identify_word is the main entry point of adding new words, which is called via the Lexer and apparently also in Numbered Words?
- Most of this module is creating their own hash table and access functions.