Converting from incorrect program code to correct program code
First Claim
1. A computer-readable medium storing instructions the instructions comprising:
- one or more instructions that, when executed by one or more processors, cause the one or more processors to;
receive input text via a programming environment associated with a programming language;
tokenize the input text to generate tokenized text;
identify an error within the tokenized text;
identify an invalid token string, based on the tokenized text and the identified error, that is invalid for the programming language;
identify a token category pattern based on the invalid token string,the token category pattern being a first sequence of token categories;
identify a replacement pattern based on the token category pattern and/or the error,the replacement pattern being a second sequence of token categories that is different from the first sequence of token categories;
identify a replacement token string based on the replacement pattern;
determine valid program code, associated with the programming language,based on the replacement token string; and
provide the valid program code.
1 Assignment
0 Petitions
Accused Products
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.
-
Citations
20 Claims
-
1. A computer-readable medium storing instructions the instructions comprising:
-
one or more instructions that, when executed by one or more processors, cause the one or more processors to; receive input text via a programming environment associated with a programming language; tokenize the input text to generate tokenized text; identify an error within the tokenized text; identify an invalid token string, based on the tokenized text and the identified error, that is invalid for the programming language; identify a token category pattern based on the invalid token string, the token category pattern being a first sequence of token categories; identify a replacement pattern based on the token category pattern and/or the error, the replacement pattern being a second sequence of token categories that is different from the first sequence of token categories; identify a replacement token string based on the replacement pattern; determine valid program code, associated with the programming language, based on the replacement token string; and provide the valid program code. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method, comprising:
-
receiving input text via a programming environment, the receiving being performed by one or more devices; tokenizing the input text to generate tokenized text, the tokenizing being performed by the one or more devices; identifying an invalid token string based on the tokenized text, the identifying the invalid token string being performed by the one or more devices; identifying a token category pattern or an error based on the invalid token string, the token category pattern being a first sequence of token categories, the identifying the token category pattern or the error being performed by the one or more devices; identifying a replacement pattern based on the token category pattern or the error, the replacement pattern being a second sequence of token categories that is different from the first sequence of token categories, the identifying the replacement pattern being performed by the one or more devices; identifying a replacement token string based on the replacement pattern, the identifying the replacement token string being performed by the one or more devices; determining valid program code based on the replacement token string, the determining being performed by the one or more devices; and providing the valid program code, the providing being performed by the one or more devices. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A device, comprising:
-
one or more processors to; receive input text via a programming environment associated with a programming language, the input text being invalid for the programming language; identify an error associated with the input text; identify an invalid token string, based on the input text, that is invalid for the programming language, the invalid token string being a string of tokens generated based on the input text; identify a token category pattern based on the invalid token string, the token category pattern being a first sequence of token categories; identify a replacement pattern based on the token category pattern and/or the error, the replacement pattern being a second sequence of token categories that is different from the first sequence of token categories; identify a replacement token string based on the replacement pattern; determine valid program code, that is valid for the programming language, based on the replacement token string; and provide the valid program code. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification