Methods and interface for building command expressions in a computer system
First Claim
1. In a computer system for evaluating expressions entered by a user, the expressions comprising a plurality of tokens which evaluate to a result, said plurality of tokens comprising at least one operator token specifying what type of operation is to occur upon evaluation of the expression and at least one operand token specifying a data member which said at least one operator token is to operate on, a method for assisting the user with correctly creating an expression, the method comprising:
- (a) storing a set of rules specifying valid relationships between adjacent tokens, said set of rules including rules specifying valid relationships between adjacent operator and operand tokens;
(b) receiving user input for placing at least one token in said expression being created;
(c) determining validity of said expression being created by applying said rules to adjacent ones of said at least one token; and
(d) if said expression being created is determined not to be valid in step (c), automatically modifying said expression so that validity of said expression being created is maintained.
3 Assignments
0 Petitions
Accused Products
Abstract
The system of the present invention comprises a development system having an Expression Builder for assisting a user with creating an expression. With full syntax checking enabled, the user builds an expression in "token" mode. As the user enters each token element, the system attempts to validate the expression and, if the expression is valid, displays the result. If the expression is incomplete or invalid, however, the system displays a message explaining what is needed. The Expression Builder of the present invention employs placeholders or "proxies" for representing elements in an expression which should be replaced before the expression is valid. The expression is dynamically adjusted during user editing as required to maintain expression validity. In this manner, the user is provided with in situ assistance in constructing syntactically-correct expressions.
-
Citations
15 Claims
-
1. In a computer system for evaluating expressions entered by a user, the expressions comprising a plurality of tokens which evaluate to a result, said plurality of tokens comprising at least one operator token specifying what type of operation is to occur upon evaluation of the expression and at least one operand token specifying a data member which said at least one operator token is to operate on, a method for assisting the user with correctly creating an expression, the method comprising:
-
(a) storing a set of rules specifying valid relationships between adjacent tokens, said set of rules including rules specifying valid relationships between adjacent operator and operand tokens; (b) receiving user input for placing at least one token in said expression being created; (c) determining validity of said expression being created by applying said rules to adjacent ones of said at least one token; and (d) if said expression being created is determined not to be valid in step (c), automatically modifying said expression so that validity of said expression being created is maintained. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. In a system for processing commands entered by a user, the commands including expressions which resolve to a result, said commands comprising at least one operand token specifying a data member and at least one operator token specifying a particular type of operation to occur to particular data members upon evaluation of expressions, a method for assisting the user with construction of a valid expression, the method comprising:
-
(a) receiving input from the user specifying a desired expression; (b) dividing said input into a plurality of tokens, said plurality of tokens including adjacent operator and operand tokens; (c) determining validity of said desired expression by comparing said tokens against a set of rules specifying valid relationships between tokens; and (d) if said desired expression being created is determined not to be valid in step (c), automatically modifying said desired expression so that validity of said desired expression is maintained.
-
-
11. A development system for creating syntactically-correct expressions from data entered by a user, the expressions comprising a plurality of tokens which evaluate to a result, said plurality of tokens comprising at least one operand token specifying a data member and at least one operator token specifying a particular type of operation to occur to particular data members upon evaluation of expressions, the system comprising:
-
a computer having a processor and a memory; means for storing in said memory information specifying valid relationships between tokens, said information including rules specifying valid relationships between adjacent operator and operand tokens; input means for receiving user input for placing at least one token in a particular expression being created; means for determining validity of said particular expression being created by applying said rules to adjacent ones of said at least one token; and means for automatically modifying said particular expression so that validity of said particular expression being created is maintained.
-
-
12. A computer system for creating an expression comprising:
-
a processor and a memory; means for storing syntactic information for a desired target language in said memory, said information specifying valid combinations of operand and operator elements for an expression; an interface means for specifying an edit operation at a desired location in the expression, said edit operation for adding or deleting an element to an expression comprising operand and operator elements; comparison means for comparing said edit operation with said syntactic information; and means for automatically modifying said edit operation so that the expression maintains valid combinations of elements. - View Dependent Claims (13, 14, 15)
-
Specification