Embedded pre-processor with dynamic macro forms
Abstract
An embedded pre-processor having dynamic macro types is disclosed. After a lexer receives an identifier token from source code, the lexer compares the identifier token with the macro names stored in the symbol table. If the identifier token matches a macro name stored in the symbol table, the lexer replaces the identifier token with a macro form token. The lexer then sends the macro form token to a glue routine. The glue routine invokes a macro invocation parser. The lexer continues to transfer tokens to the macro invocation parser via the glue routine until the completion of the macro invocation. The macro invocation parser subsequently sends a macro body definition of the macro to the lexer.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 4 · Forward citations: 9.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A method for processing macros of varying grammatical invocation by a pre-processor having a lexer, a glue routine, a macro invocation parser and a parser, said method comprising: receiving an identifier token from source code; in response to said received identifier token matching a macro stored in a symbol table: replacing said identifier token with a corresponding macro form token; sending said macro form token to said glue routine; invoking said macro invocation parser by said glue routine; continuously receiving tokens by said macros invocation parser via said glue routine until a complet
- Claim 2Depends on #1
The method of claim 1 , wherein said receiving step is performed by a lexer.
- Claim 3Depends on #1
The method of claim 1 , wherein sa
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (9 of 9 total)
References Cited — Backward Prior Art (4)
Non-Patent Literature (1)
- Assembler Compiler Facility for Integrated User Written Preprocessor, IBM Technical Disclosure Bulletin, Jan. 1974, pp. 2614-2615.