operator
literal keyword
Placing literal
before any of the
keywords arg
, token
, literal
, or is
lets you use these
keywords as part of a macro name or argument delimiter, and lets you use the keyword macro-end
in the
macro definition.
The code below uses literal
before is
in a macro definition to keep is
from being
interpreted as an OmniMark keyword. The macro named my
uses the word is
as a literal, so that
you can assign local variables by using an English-like line of code such as my nick-name is Speedy
.
macro my token id literal is token value is set id to value macro-end process local string nick-name local string home-town my nick-name is "Speedy" my home-town is "Denver" output "My nickname is %g(nick-name).%n" || "My hometown is %g(home-town).%n"