发明名称 PARSING OF DECLARATIONS IN ALL BRANCHES OF PREPROCESSOR CONDITIONALS
摘要 Declarations from an input source code or tokenized source code are serialized into a stream of tokens produced by following each branch of a preprocessor conditional directive statement that interrupts a declaration. Tokens are labeled with a parsing path indicator corresponding to a parsing path induced by branches of a preprocessor conditional directive. The declarations that are formed along the different parsing paths are serialized by fetching the tokens that belong to the first parsing path in a first pass, and passing the tokens on to a next phase of a compiler. The pointer that marks the next token is repositioned to return to the start of the declaration. The declaration may be serialized again through the second parsing path in a second pass. The operation may be repeated until each of the parsing paths induced by the presence of branches of the preprocessor conditional directives in the source code is exhausted.
申请公布号 US2009313604(A1) 申请公布日期 2009.12.17
申请号 US20080140267 申请日期 2008.06.17
申请人 MICROSOFT CORPORATION 发明人 MICELI THIERRY
分类号 G06F9/44 主分类号 G06F9/44
代理机构 代理人
主权项
地址