Next: Question 21 Prev: Question 19 Up: Common Things People Want To Know Top: Top

[20] Can I define (and format) new reserved words?

Assume you want to declare `far' to indicate a function pointer: In order for fweave to treat `far' like a reserved word in C (or any of the language supported by FWEB), say somewhere in your source. Weave does not by default recognize `|far|' as a reserved word (this property extends to cweave as well).

[Archive-Date: Mon, 10 Aug 1992 07:14:44 CDT]

The formatting with `@f' is language-specific; it only applies to identifiers used in the language in force at the point the format statement is encountered. This feature allows a WEB programmer to invent new reserved words and/or to unreserve some reserved identifiers [M-11.12].