User''s Guide to the MS Macro Language
A. Dain Samples · 1992
M5 is a powerful, easy to use, general purpose macro language. M5.s syntax allows concise, formatted, and easy to read specifications of macros while still giving the user control over the appearance of the resulting text. M5 macros cna have named parameters, can have an unbounded number of parameters, and can manipulate parameters as a single unit. M5 provides separate macro name spaces called ''pools'' that simplify the creation and management of context-dependent macros and dynamic macros (macros defined by macros based on the input). Several examples demonstrate m5''s power and flexibility, including a random string generator that uses BNF grammars to specify the form of the strings; an implementation of a Turing machine; and a demonstration of how m5 can process LATEX input and programming language source in the same file to simplify code maintenance and documentation.