Method, system and computer program for syntax validation
AssigneeInternational Business Machines Corporation
InventorAndrew James Osborne
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorAndrew James Osborne
Estimating the term…
A system, method and computer program for validating a syntactical statement employing a stored syntax tree which represents all possible syntax options. The tree consists of a network of junction nodes and data nodes between a root node and an end node, whereby all paths through the tree lead to the end node. Firstly, a syntactical statement is passed to the root node, where it is parsed into elementary tokens. Next, a table is created to store the tokens, and entries representing the end node of the syntax. The location of a current node in the syntax tree is also maintained, whereby the current node is initially the root node. Then, the potential nodes that can be selected from the current node and their distances from the current node are returned. The potential nodes are then compared to the stored tokens, and a potential node is selected. Finally, the location of the current node is updated and the process is repeated until the syntactical statement has been validated.
A method, executed on a computer system, of validating a syntactical statement employing a stored syntax tree representing all possible syntax options by means of a network of junction nodes and data nodes between a root node and an end node, such that all paths through the tree lead to the end node, said method comprising the steps of:
A computer system for validating a syntactical statement comprising:
A computer-implemented syntax checker comprising:
A computer program recorded on a memory device consisting of instructions which, when executed on a computer, perform a method of validating a syntactical statement employing a stored syntax tree representing all possible syntax options by means of a network of junction nodes and data nodes between a root node and an end node, such that all paths through the tree lead to the end node, said method comprising the steps of:
Dependencies are inferred from the claim text.