Keywords: gildas-prog

Next: Using Variables Up: The Library Version Previous: The Library Version Contents Index

## Library Only mode

It is sometimes a burden to have complex languages such as `GREG1` in your `HELP` when you just want to use the library version of the language. SIC provides a way to load a language in ``Library Only'' mode. Commands of such languages are accessible only through the `exec_command` mechanism (or an equivalent coding). This mode is useful for building another more elaborate language from one (or more) lower level languages (pay attention to possible recursive programming in doing so however). This mode is called by loading the corresponding language with a negative size specification :

               SIC_BEGIN(LANG,HELP,-MCOM,VOCAB,VERSION,Dispatch,ErrorRoutine)

A language loaded in such a mode can still be accessed interactively or in procedures: the command name must be given with the full language name in it to resolve the command. Similarly, the HELP can be accessed by giving the full language and command names.