\ An example DOR for CamelForth \ Indentation is optional, but makes structure clearer \ Keywords must be in capitals and must be followed by a space \ (eg COMMAND[ Quit] is okay, COMMAND[Quit] is not) CHAR F APPLICATION[ CamelForth] \ Activate with key F N/L \ blank help line HELP[ CamelForth Alternate DOR] HELP{ [c] Garry Lancaster, 1999} \ use braces to include brackets \ in text TOPIC[ Stuff] \ Any Info topic must come first HELP[ You can have help for each topic if you want] INFO[ ANS Standard] HELP[ The entire core wordset is present, as well as] HELP[ many of the optional ones.] INFO[ Z88 Words] HELP[ Some Z88-specific words are:] HELP[ OZACCEPT OS_ESC] HELP[ MAP-BLOCKS UNMAP-BLOCKS] INFO[ Pssst...] NEW-COLUMN \ force a new column HELP[ Don't tell everyone how easy it is to write DORs!] TOPIC[ Commands] \ no help for this topic SEQ[ Q] 128 COMMAND[ Quit] \ safe command codes are 1-175 HELP[ Say BYE] SEQ[ C] 129 COMMAND[ Cold] HIDE \ make command "hidden" \ SEQ[ must be on the same line as COMMAND[ to work correctly IN_SDEL 130 COMMAND[ Words] \ special sequence (SHIFT-DEL) \ no help for last two commands TOPIC[ Options] HELP[ Options to control the system] SEQ[ OE] 131 COMMAND[ Escape ON] SAFE \ make command "safe" HELP-TEXT[ Turn escape detection on] SEQ[ OO] 132 COMMAND[ Escape OFF] HELP[ Turn escape detection off] SEQ[ OB] 133 COMMAND[ Bell] HELP-TEXT[ Toggle the warning ] \ mix text and special chars 1 HELP-CHAR 33 HELP-CHAR HELP-TEXT[ on and off] \ that's it!