Edit this page

herkforth dictionary format

The herkforth dictionary format will change. e.g. color_mod will be removed, and at some point I won't use a struct anymore. This data will be stored in separate arrays.

The dictionary is simply an array of dictionary entry structures. New entries are added at the end. dict-start and dict-new point to the first (oldest) entry and to the first free entry (the one which will be used for the next new definition), respectively.

Dictionary entries are 32 bytes long. They have the following fields:

data element has the following meanings:


I am about to change the flags element. It will be a simple type field stored in a separate arary. The types will be:

You can get these values with dicti->type. The constants are/should-be named wtype-unknown, wtype-word etc.. Create the one you want if it doesn't exist yet.


flags element starts with a byte with the following bit flags (starting with the most significant)

The second byte in the flags element is the color_mod. The editor remembers the color you are typing in (0: yellow, 1: green). Adding color_mod to this gives the correct color bits for the new source token.

See Also:

herkforth colors

herkforth docs

herkforth

Edit this page · home ·