Source code line counting system and method
    1.
    发明申请
    Source code line counting system and method 审中-公开
    源代码行计数系统和方法

    公开(公告)号:US20030009744A1

    公开(公告)日:2003-01-09

    申请号:US09899868

    申请日:2001-07-05

    IPC分类号: G06F009/44

    CPC分类号: G06F8/423 G06F8/425 G06F8/427

    摘要: One aspect of the invention is a method of counting lines of source code. One of a plurality of sets of configuration data is selected wherein each set of the plurality of sets of configuration data is associated with at least one computer language. Collectively the plurality of sets of configuration data are associated with a plurality of computer languages and the selected set of configuration data comprises the keywords for a first computer language. A first file is parsed wherein the first file contains computer source code written in the first computer language to create a first token stream in response to the selected set of configuration data. A first list of statements is created in response to the first token stream and a count value is generated in response to the first list of statements.

    摘要翻译: 本发明的一个方面是计算源代码行的方法。 选择多组配置数据中的一组,其中多组配置数据中的每一组与至少一种计算机语言相关联。 集合地,多组配置数据与多种计算机语言相关联,并且所选择的一组配置数据包括用于第一计算机语言的关键字。 解析第一文件,其中第一文件包含以第一计算机语言编写的计算机源代码,以响应于所选择的一组配置数据来创建第一令牌流。 响应于第一个令牌流创建第一个语句列表,并且响应于第一个语句列表生成计数值。