发明名称 Method and apparatus for dynamic configuration of a lexical analysis parser
摘要 The present invention provides a method and apparatus for the lexical analysis of computer source code. The lexical analyzer is dynamically configured at runtime to recognize a one or more reserved words or operators. Thus, the analyzer has the ability to interact with multiple languages. In one or more embodiments of the present invention, the analyzer is instantiated by a host application, for example, the parser of a compiler. The host application adds a list of tokens to the analyzer that must be recognized. These tokens comprise at least a subset of the reserved words and operators of the computer language. In one embodiment, the host application then queries the analyzer for the next token in the source code. In another embodiment, tokens are added during the query phase as needed. In a separate embodiment, tokens are dynamically removed from the analyzer as the needs of the host application change.
申请公布号 US2003074190(A1) 申请公布日期 2003.04.17
申请号 US20010977526 申请日期 2001.10.12
申请人 ALLISON DAVID S. 发明人 ALLISON DAVID S.
分类号 G06F9/45;(IPC1-7):G06F17/21 主分类号 G06F9/45
代理机构 代理人
主权项
地址