Method and apparatus for program development using a grammar-sensitive editor
First Claim
1. A method of performing grammar sensitive editing of user input represented by one or more tokens, said method comprising the steps of:
- detecting a trigger event;
performing, in response to detection of said trigger event, lexical and syntactical analysis of said user input;
transmitting, responsive to detection of an erroneous token by said performing step, one or more valid language options for use in place of said erroneous token; and
transmitting, responsive to detection of no erroneous tokens by said performing step, one or more subsequent language options;
wherein the step of transmitting one or more language options and the step of transmitting one or more subsequent language options include transmitting a menu of one or more symbols based upon grammar rules defining syntax rules of input language, said menu including one or more first right hand side symbols corresponding to an expanded non-terminal symbol in accordance with said grammar rules defining syntax rules of said input language.
3 Assignments
0 Petitions
Accused Products
Abstract
Techniques used in program development using a grammar sensitive editor are described. Input within an edit buffer is processed by a lexical and syntax analyzer in response to various syntactic and lexical states. Actions such as updating various multimedia indices are performed. Users are guided through program development through prompts for menu selection. The items transmitted on the menu are in accordance with the current state of lexical and syntactic processing. If an input in the edit buffer is invalid, the erroneous text is detected via the lexical and syntax analyzers and the erroneous text is highlighted. Additionally, transmitted via the menu is a selection of correct and valid alternatives from which the user may select to be included in the edit buffer.
-
Citations
38 Claims
-
1. A method of performing grammar sensitive editing of user input represented by one or more tokens, said method comprising the steps of:
-
detecting a trigger event; performing, in response to detection of said trigger event, lexical and syntactical analysis of said user input; transmitting, responsive to detection of an erroneous token by said performing step, one or more valid language options for use in place of said erroneous token; and transmitting, responsive to detection of no erroneous tokens by said performing step, one or more subsequent language options; wherein the step of transmitting one or more language options and the step of transmitting one or more subsequent language options include transmitting a menu of one or more symbols based upon grammar rules defining syntax rules of input language, said menu including one or more first right hand side symbols corresponding to an expanded non-terminal symbol in accordance with said grammar rules defining syntax rules of said input language. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30)
-
-
31. A memory for storing instructions executable by a computer, the memory comprising:
-
detector means for detecting a trigger event; analysis means, coupled to said detector means, for performing lexical and syntactical analysis of user input represented by one or more tokens; erroneous token detector means, coupled to said analysis means, for detecting an erroneous token in said user input, said erroneous token detector means transmitting one or more valid language options for use in place of said erroneous token; and
means, coupled to said analysis means, for transmitting one or more subsequent language options if said analysis means detects only valid tokens;wherein said erroneous token detector means and said means for transmitting include means for transmitting a menu of one or more symbols based upon grammar rules defining syntax rules of input language said menu including one or more first right hand side symbols corresponding to an expanded non-terminal symbol in accordance with said grammar rules defining syntax rules of said input language.
-
-
32. A computer system comprising:
-
user interface means for interfacing with a user to transmit input and output; analysis means, coupled to said user interface means, for performing lexical and syntax analysis of user input; error transmitter means, coupled to said analyzer means, for transmitting one or more options to said user interface means when said analysis means detects no errors in said user input, said one or more options representing one or more subsequent input options; and means for transmitting a menu of one or more symbols based upon grammar rules defining syntax rules of input language, said menu including one or more first right hand symbols corresponding to an expanded non-terminal symbol in accordance with said grammar rules defining syntax rules of said input language. - View Dependent Claims (33)
-
-
34. An apparatus comprising:
-
an option selector for selecting an option from a transmitted menu of one or more options; a menu processor, coupled to said option selector, which receives and processes said option selected with said option selector; a lexical and syntax analyzer, coupled to said menu processor, which performs lexical and syntax analysis upon user input; an error transmitter, coupled to said lexical and syntax analyzer, for transmitting said one or more options included in said transmitted menu when said lexical and syntax analyzer detects an error in said user input, said one or more options representing one or more valid options for use in correcting said error; and a transmitter, coupled to said lexical and syntax analyzer, for transmitting one or more options included in said transmitted menu when said lexical and syntax analyzer detects no errors in said user input, said one or more options representing one or more subsequent input options; said transmitted menu including one or more symbols based upon grammar rules defining syntax rules of input language, said menu including one or more first right hand symbols corresponding to an expanded non-terminal symbol in accordance with said grammar rules defining syntax rules of said input language. - View Dependent Claims (35)
-
-
36. A method of performing grammar sensitive editing of user input represented by one or more tokens, said method comprising the steps of:
-
detecting a trigger event; performing, in response to detection of said trigger event, lexical and syntactical analysis of user input; and transmitting, responsive to detection of no erroneous tokens by said performing step, one or more subsequent language options; wherein the transmitting step includes transmitting a menu of one or more symbols based upon grammar rules defining syntax rules of input language, said menu including one or more first right hand side symbols corresponding to an expanded non-terminal symbol in accordance with said grammar rules defining syntax rules of said input language. - View Dependent Claims (37)
-
-
38. A method of performing grammar sensitive editing of user input represented by one or more tokens, said method comprising the steps of:
-
detecting a trigger event; performing, in response to detection of said trigger event, lexical and syntactical analysis of said user input; and transmitting, responsive to detection of an erroneous token by said performing step, one or more valid language options for use in place of said erroneous token; wherein the step of transmitting includes transmitting one or more symbols based upon grammar rules defining syntax rules of input language, said menu including one or more first right hand side symbols corresponding to an expanded non-terminal symbol in accordance with said grammar rules defining syntax rules of said input language.
-
Specification