Converting from incorrect program code to correct program code
    1.
    发明授权
    Converting from incorrect program code to correct program code 有权
    从不正确的程序代码转换为正确的程序代码

    公开(公告)号:US09304743B1

    公开(公告)日:2016-04-05

    申请号:US14685956

    申请日:2015-04-14

    CPC classification number: G06F8/51 G06F8/425

    Abstract: A device may receive input text via a programming environment associated with a programming language. The device may tokenize the input text to generate tokenized text. The device may identify an invalid token string, based on the tokenized text, that is invalid for the programming language. The device may identify a token category pattern based on the invalid token string. The token category pattern may be a first sequence of token categories. The device may identify a replacement pattern based on the token category pattern. The replacement pattern may be a second sequence of token categories that is different from the first sequence of token categories. The device may identify a replacement token string based on the replacement pattern. The device may determine valid program code, associated with the programming language, based on the replacement token string. The device may provide the valid program code.

    Abstract translation: 设备可以经由与编程语言相关联的编程环境接收输入文本。 该设备可以标记输入文本以生成标记化文本。 设备可以基于令牌化文本来标识对编程语言无效的无效令牌字符串。 设备可以基于无效令牌字符串来识别令牌类别模式。 令牌类别模式可以是令牌类别的第一序列。 设备可以基于令牌类别模式来识别替换模式。 替换模式可以是与令牌类别的第一序列不同的令牌类别的第二序列。 设备可以基于替换模式来识别替换令牌字符串。 设备可以基于替换令牌字符串来确定与编程语言相关联的有效程序代码。 该设备可以提供有效的程序代码。

Patent Agency Ranking