Vectorized LR parsing of computer programs
AssigneeSupercomputer Systems Limited Partnership
InventorDavid A. Seberger
Life of this patent
Estimating the term…
Loading patent…
AssigneeSupercomputer Systems Limited Partnership
InventorDavid A. Seberger
Estimating the term…
A parser for parsing computer programs in a compiler has parsing tables arranged as linear vectors. In a reduction portion of the parser, a production table and a lookahead set table have paired entries at identical address offsets such that a one-to-one relationship exists between each lookahead set in the lookahead set table and the representation of the lookahead set in the lookahead set table. In a read transition portion of the parser, an entrance symbol table has entries paired with transition state representations and each pair being at an identical address offset in the respective tables. For a reduction or read transition operation, the lookahead set table or the entrance symbol table is scanned to find the appropriate entry. Once the appropriate entry is found, the production table or the transition state table is addressed using the offset of the appropriate entry found during the scanning process.
In a machine-effected method of operating a parser portion of a compiler for parsing a computer program in an input stream, said computer program being written in a predetermined programming language having a given grammar, including the machine-executed steps of:
In a machine-effected method of parsing a computer program in an input stream having tokens in the input stream that represent a sequence of structure of the computer program, during said parsing, sequentially creating parser states that respectively indicate status of the syntactical analysis for verifying structure and specification of the computer program expressions, one of said parsing states being a current parser state that indicates a current parsing step, including the machine-executed steps of:
In apparatus for parsing a computer program, including, in combination:
Dependencies are inferred from the claim text.