Development assistance for mixed-language sources
First Claim
1. A method for providing syntax indication of a code element in a mixed-language file, comprising the steps of:
- a. determining whether the code element in the mixed-language file is in a primary language;
b. if the code element is determined to be of the primary language, identifying a syntax of the code element using a primary scanner;
c. otherwise identifying the syntax of the code element using a supplemental scanner;
d. applying generic style rules to the identified syntax of the code element; and
e. generating the syntax indication for the code element in the mixed-language file in accordance with the applied generic style rules.
8 Assignments
0 Petitions
Accused Products
Abstract
Development assistance for a program comprising code in more than one language, is provided appropriately for each language in an integrated development environment. The assistance can include syntax highlighting, structure analysis, error reporting, completion assistance and/or context-sensitive help. The language of the subject element of code is determined and the appropriate assistance processes are applied. If the code is in a supplementary language, routines associated with the supplementary language are invoked to provide the assistance. When needed, information from other parts of the program file is provided to determine the appropriate assistance for the element of code.
99 Citations
38 Claims
-
1. A method for providing syntax indication of a code element in a mixed-language file, comprising the steps of:
-
a. determining whether the code element in the mixed-language file is in a primary language;
b. if the code element is determined to be of the primary language, identifying a syntax of the code element using a primary scanner;
c. otherwise identifying the syntax of the code element using a supplemental scanner;
d. applying generic style rules to the identified syntax of the code element; and
e. generating the syntax indication for the code element in the mixed-language file in accordance with the applied generic style rules. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method for providing syntax indication for a program containing code in a primary language and one or more supplementary languages, the method comprising the steps of:
-
a. using a primary scanner to determine the language of a code element in the program;
b. if the code element is in the primary language, determining the syntax of the code element using the primary scanner;
c. if the code element is in one of the supplementary languages, invoking a supplementary scanner associated with the determined supplementary language; and
determining the syntax of the code element using the invoked supplementary scanner; and
d. generating the syntax indication for the code element in the program according to the determined syntax.
-
-
9. A method for providing structural representation for a mixed-language file comprising the steps of:
-
a. identifying at least one section of the code as being in a primary language and at least one section of code as being in a supplemental language;
b. parsing the section of code in the primary language using a primary parser generating code structure information;
c. parsing the section of code in the supplemental language using a supplemental parser generating code structure information;
d. integrating the code structure information generated by the primary parser with the code structure information generated by the supplemental parser; and
e. displaying the structural representation of the mixed-language file in a uniform format based on the integrated code structure information. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A method for providing structural representation for a mixed-language file comprising the steps of:
-
a. determining whether a section of code is in a primary language or a supplemental language;
b. for the section of code in the supplemental language;
determining whether the supplemental language is designated for conversion;
c. for the section of code in the supplemental language that is designated for conversion;
(i) converting the section of code using a converter generating a self-contained section of code and (ii) parsing the self-contained section of code using a first supplemental parser to generate the code structure information;
d. for the section of code in the supplemental language that is not designated for conversion;
parsing the section of code using a second supplemental parser to generate the code structure information;
e. for the section of code in the primary language, parsing the section of code using a primary parser to generate code structure information;
f. integrating the code structure information from the primary parser, first supplemental parser and second supplemental parser into a common display; and
g. displaying the structural representation of the mixed-language file in a uniform format based on the integrated code structure information. - View Dependent Claims (20, 21, 22)
-
-
23. A method for providing context-sensitive help information for a mixed-language file, comprising the steps of:
-
a. receiving a request for help relating to a code element of the mixed-language file;
b. determining whether the code element is in a primary language or a supplementary language;
c. determining a context of the code element in accordance with the determined language;
d. if the section of code is in the primary language, selecting help information in accordance with the code element and the context of the code using a resource associated with the primary language; and
e. if section of code is in the supplementary language, selecting help information in accordance with the code element and the context of the code using a resource associated with the supplementary language. - View Dependent Claims (24)
-
-
25. A method for providing completion assistance for a mixed-language file, comprising the steps of:
-
a. determining the language at the position in the section of code where an entry is being made;
b. detecting a partial code element in the section of code;
c. selecting a completion engine associated with the determined language;
d. collecting one or more suggested code elements that satisfy the partial code element, using the selected completion engine; and
e. displaying the one or more suggested code elements. - View Dependent Claims (26, 27)
-
-
28. A method for providing development assistance in an integrated development environment for a program file containing source code in more than one language, the method comprising the steps of:
-
a. scanning the source code to identify the language;
b. if the identified language is a primary language, determining a syntax of the source code in accordance with the primary language c. if the identified language is not the primary language, invoking a scanner designated for the identified language; and
determining a syntax of the source code in accordance with the identified language using the scanner designated for the identified language;
d. applying generic style rule to determine a style-format for displaying the determined syntax; and
e. displaying the source code in the style determined by the applied generic style-format rule. - View Dependent Claims (29)
-
-
30. An integrated development system that provides assistance for program files containing code in a primary language and at least one supplemental language, the system comprising:
-
a. a primary scanner that provides syntax indication for the code in the file that is in the primary language; and
b. at least one supplemental scanner that provides syntax indication for the code in the file that is in at least one supplemental language. - View Dependent Claims (31, 32, 33, 34, 35)
-
-
36. A computer readable medium encoded with processing instructions for implementing a method for providing development assistance in an integrated development environment for a program file containing source code in more than one language, the method comprising:
-
a. scanning the source code to identify the language;
b. if the identified language is a primary language, determining a syntax of the source code in accordance with the primary language c. if the identified language is not the primary language, invoking a scanner designated for the identified language; and
determining the syntax of the source code in accordance with the identified language using the scanner designated for the identified language;
d. applying generic style rule to determine a style-format for displaying the determined syntax; and
e. displaying the source code in the style-format determined by the applied generic style rule.
-
-
37. An apparatus for providing structural representation of a mixed-language file through a computer comprising a processor;
- and a memory in operative connection with the processor for storing processing instructions enabling the processor to;
a. identify at least one section of the code as being in a primary language and at least one section of code as being in a supplemental language;
b. parse the section of code in the primary language using a primary parser generating code structure information;
c. parse the section of code in the supplemental language using a supplemental parser generating code structure information;
d. integrate the code structure information generated by the primary parser with the code structure information generated by the supplemental parser; and
e. display the structural representation of the mixed-language file in a uniform format based on the integrated code structure information.
- and a memory in operative connection with the processor for storing processing instructions enabling the processor to;
-
38. A method for providing completion assistance for a mixed-language file, comprising the steps of:
-
a. determining the language at the position in the section of code where an entry is being made;
b. detecting a partial code element in the section of code;
c. selecting a completion engine associated with the determined language;
d. collecting one or more suggested code elements that satisfy the partial code element, using the selected completion engine; and
e. displaying the one or more suggested code elements.
-
Specification