发明名称 Mechanism for reformatting a simple source code statement into a compound source code statement
摘要 A mechanism for reformatting a simple source code statement into a compound source code statement is provided. Tokens are identified in unformatted source code, which contains simple statements. A syntax tree is created from the identified tokens. The syntax tree is used to identify one or more simple statements. In processing a particular simple statement, potential statements are identified in the particular simple statement. A tree of blocks, which identifies block levels, is created from the potential statements. An intermediate textual representation is created where each of the potential statements is on a different line. Indentation levels, which correspond to the block levels in the tree of blocks, are associated with each of the potential statements. Formatted source code is created by inserting begin and end block indicators into the intermediate textual representation.
申请公布号 US2003200534(A1) 申请公布日期 2003.10.23
申请号 US20020128162 申请日期 2002.04.22
申请人 KUZMIN ALEKSANDR M. 发明人 KUZMIN ALEKSANDR M.
分类号 G06F9/44;G06F9/45;(IPC1-7):G06F9/45 主分类号 G06F9/44
代理机构 代理人
主权项
地址