摘要:
A syntax analysis unit (12) that analyzes a plurality of source codes and classifies them into a plurality of patterns, a preprocessing unit (13) that abstracts each of the patterns classified by the syntax analysis unit (12), and an alignment derivation unit (15) that derives an alignment between the source codes for each of the abstracted patterns included in each of the source codes are included. Further, a visualization unit (16) that generates an image indicating the alignment in a predetermined format, and a display unit (17) that displays the image indicating the alignment are included.
摘要:
Code search is used to support various features. Code segments may be indexed using a code structure representation of the code segment. Code segments may be compared for similarity to identify a match with an input code segment using a comparison of logic trees generated for the input code segment and a stored code segment in an entry with a matching index value.
摘要:
A system and method can support compatibility checking in a programming language environment. The programming language environment can check whether a target type associated with an expression in the programming language environment is functional, wherein the target type is functional when it has exactly one method meeting one or more criteria that define that method as relevant in a counting system. Then, the programming language environment can derive a function descriptor from the target type, which is context-dependent. Furthermore, the programming language environment can type-check the expression with the function descriptor associated with the target type.
摘要:
A computer readable storage medium, system and method for improving automated testing systems to include a first and second behavioral data. The first behavioral data is collected periodically and the second behavioral data is collected in real time. The receipt of the first behavioral data and a second behavioral data are followed by the receipt of a system configuration template. A test case is updated based on the first and second behavioral data, and an automated test environment is reconfigured based on the first behavioral data, second behavioral data, and the system configuration template. The test executes in the automated test environment producing a test result.
摘要:
A computer implemented method for parsing computer languages and structured data which converts the source language text of a computer program, e.g. C or FORTRAN, or structured data, e.g. HTML or XML, into a syntax tree. The method has two steps. The first step looks for sequences of tokens in the main token list in which no tokens referring to recursive delimiters exist. The second step parses those tokens into a partial syntax tree which is inserted back into the main token list replacing the tokens which have just been parsed. The two steps are repeated until only one token remains in the main token list. Because no recursion exists in the tokens being parsed by the second step, a find and replacement mechanism using regular expressions can be used to do the parsing. Guidelines are shown for creating a language definition using regular expressions.
摘要:
The invention provides a computer-implemented method of analyzing symbols in a computer system, the symbols conforming to a specification for the symbols, in which the specification has been codified into a set of computer-readable rules; and, the symbols analyzed using the computer-readable rules to obtain patterns of the symbols by determining the path that is taken by the symbols through the rules that successfully terminates, and grouping the symbols according to said paths, the method comprising; upon receipt of a message at a computer, performing a lexical analysis of the message; and, in dependence on lexical analysis of the message assigning the message to one of the groups identified according to said paths. The invention also provides a computer programmed to perform the method and a computer program comprising program instructions for causing a computer to perform the method.
摘要:
A device may obtain a test script document. The device may process the test script document to perform term extraction using one or more term extraction techniques to identify a set of terms of the test script document. The one or more term extraction techniques may include a skip n-gram term extraction technique. One or more terms, of the set of terms, may be located within an n-gram of the test script document. The device may process the test script document to perform hierarchy formation for results of performing term extraction. A relationship between a set of terms, of the set of terms, may be identified using hierarchy formation. The device may generate a functional diagram of the test script document based on the results of performing term extraction and results of performing hierarchy formation. The device may provide information identifying the functional diagram.
摘要:
Methods, systems, and apparatuses, including computer programs encoded on computer readable media, for generating a plurality of tokens from one or more source files. The one or more source files include source code in a first programming language. The source code includes one or more static conditionals that include a conditional expression and branch code that is operative when the conditional expression is true. Various configurations are possible based upon the conditionals. A first static conditional that includes one or more nested static conditionals within the branch code associated with the first static conditional is determined. Each of the one or more nested static conditionals is hoisted to a beginning of the branch code associated with the first static conditional. Each innermost branch code does not contain a static conditional, and each possible configuration is preserved.
摘要:
Expressions are selectively retrieved from memory during compilation by scanning code for expressions that can be effectively accessed directly from highly cached memory without needing to be loaded into a register, e.g., expressions that are not modified by the rest of the code. The scanning may include examining the use of the expression. Those expressions may be retrieved directly from the highly cached memory rather than being loaded into registers. This reduces compilation time.
摘要:
A system and method can support context-dependent expression compilation in a programming language environment. A compiler in the programming language environment can provide one or more context objects that operate to compile various context-dependent expressions in different programming contexts. Then, the compiler can use a said context object to derive a target type associated with a context-dependent expression, and use the context object to perform compatibility check for the context-dependent expression in the programming language environment.