Current Page: NeXtMidas Training Option Trees Command Dictionary The Dictionary
| The Dictionary: Every option tree must include a `commands.cnf` file in its `cfg` subdirectory. This file is called the "Command Dictionary." This file is read into memory when the option tree is added to the path. NeXtMidas uses "reflection" to call primitives/intrinsics at runtime. This allows option trees to be used while the SYS option tree remains completely independent of the other option trees. NeXtMidas uses information in the command dictionary to figure out how to instantiate a primitive/intrinsic.
X-Midas Users Take Note:
The command dictionary in NeXtMidas is named `commands.cnf` while X-Midas uses `commands.cfg`. This allows an option tree to contain a mix of NeXtMidas and X-Midas commands. It is important to note that the internal structure of the command dictionaries differ between X-Midas and NeXtMidas.