Skip to content
EntityQ629579· pop 41· linked from 688 articles

preprocessing rule in computer languages that specifies how an input text usually identified by a definable keyword or sequence is mapped to a frequently larger output text

Wikidata facts

Show 2 more facts
Sources (4)

via Wikidata · CC0

~23 min read

Article

jEdit's macro editor In computer programming, a macro (short for "macro instruction"; from Greek μακρο- 'long, large') is a rule or pattern that specifies how a certain input should be mapped to a replacement output. Applying a macro to an input is known as macro expansion.

The input and output may be a sequence of lexical tokens or characters, or a syntax tree. Character macros are supported in software applications to make it easy to invoke common command sequences. Token and tree macros are supported in some programming languages to enable code reuse or to extend the language, sometimes for domain-specific languages.

Connections

Categories