12.07.2015 Views

spec - Local Sector 7 web page

spec - Local Sector 7 web page

spec - Local Sector 7 web page

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

configured motors and counters.cdef("?") — Lists all the pieces of all the chained macros.cdef("name", "", "?") — Lists the pieces of the macro named name .Built-In Macro NamesThe following macro names are built-in to <strong>spec</strong>. They are run at the <strong>spec</strong>ified timesonly if they have been given a definition.begin_mac — If a macro by this name exists, it will be run after reading the hardwareconfiguration file and all the start-up command files, but before reading commandsfrom the keyboard.end_mac — If a macro by this name exists, it will be run when <strong>spec</strong> exits from eithera ˆD or a quit command.config_mac — If a macro by this name exists, it will be run after reading the configurationfile at start up and after the reconfig command is executed.prompt_mac — If a macro by this name exists, it will always be run just before <strong>spec</strong>issues the main, level-zero prompt. If an error occurs while runningprompt_mac ,itwill be automatically undefined.cleanup, cleanup1 — If either or both exists, they will be run whenever an error isencountered, the exit command is encountered, or a user types ˆC . Thecleanup macros is run first. After running the clean-up macros, <strong>spec</strong> givesthe standard prompt and waits for the next command from the keyboard.cleanup_once — Aclean-up macro (added in release 4.03.13) that is always deletedbefore a new <strong>spec</strong> main prompt is issued. If defined, its definition will bepushed on to the input stream whenever an error is encountered, the exitcommand is encountered, or a user types ˆC .cleanup_always — Like cleanup_once ,but its definition is not removed except by anexplicit undef command.MacroArgumentsWithin ordinary macros (not macro functions), the symbols $1 , $2 , ... ,are replacedby the arguments with which the macro is invoked. Arguments are defined asstrings of characters separated by spaces. Also, quotes can be used to include morethan one space-separated string in a single argument. Use \" or \’ to pass literalquotes. Arguments can be continued over more than one line by putting a backslash92 REFERENCE MANUAL INTERIM WORK-IN-PROGRESS (8/16/01) NOT FOR GENERAL DISTRIBUTION

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!