Parse table generation method and system
First Claim
1. A state transition table defining a plurality of statements in a programming language, each statement defined by at least one token, comprising:
- a table defining an array of states;
a plurality of sub-tables associated with said table, each sub-table corresponding to one of said plurality of statements and including at least one relocatable state that changes in response to said sub-table being assembled within said table, wherein each sub-table is a two-dimensional array defining an action for at least one token in at least one state; and
a software module operable to output a state in response to an input, wherein the table, plurality of sub-tables, and software module are stored on a computer.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and system assembles state transition tables (100) from a plurality of modular sub-tables (102). In one embodiment, each sub-table (102) defines an individual statement in a programming language. Combining multiple sub-tables (102) together into one large table (100) creates a dictionary for a programming language that can be used to, for example, compile code into the programming language or translate code from one language to another. Using sub-tables (102) simplifies construction of the larger table (100) and makes it easier to add, modify, or remove portions of the table (102).
13 Citations
12 Claims
-
1. A state transition table defining a plurality of statements in a programming language, each statement defined by at least one token, comprising:
-
a table defining an array of states; a plurality of sub-tables associated with said table, each sub-table corresponding to one of said plurality of statements and including at least one relocatable state that changes in response to said sub-table being assembled within said table, wherein each sub-table is a two-dimensional array defining an action for at least one token in at least one state; and a software module operable to output a state in response to an input, wherein the table, plurality of sub-tables, and software module are stored on a computer. - View Dependent Claims (2, 3, 4, 5, 6, 9, 10, 11, 12)
-
-
7. A method for accessing a state transition table defining a plurality of statements in a programming language, each statement defined by at least one token, comprising:
-
receiving one of said plurality of statements; accessing a sub-table corresponds to the received statement, wherein the accessed sub-table corresponds to the received statement, wherein the accessed sub-table includes at least one relocatable state that changes in response to the sub-table being assembled within the state transition table, wherein the accessed sub-table is a two-dimensional array defining an action for at least one token in at least one state, and wherein the state transition table and sub-table are stored on a computer readable medium on a computer; receiving on the computer a token corresponding to the received statement;
accessing the sub-table corresponding to the received statement based on the received token and a current state; andcarrying out an action corresponding to the received token and the current state via a software module stored on the computer readable medium on the computer. - View Dependent Claims (8)
-
Specification