发明名称 Embedded pre-processor with dynamic macro forms
摘要 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.
申请公布号 US6925635(B2) 申请公布日期 2005.08.02
申请号 US20010022969 申请日期 2001.12.13
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 GARVEY JOSEPH F.
分类号 G06F9/45;(IPC1-7):G06F9/45 主分类号 G06F9/45
代理机构 代理人
主权项
地址