Modular parser architecture
First Claim
Patent Images
1. A multipass parser implementation comprising:
- plural miniparsers each successively operable on a respective abstract syntax tree that corresponds to an input information encoding and that includes transformations of predecessor ones, if any, of the miniparsers, wherein respective ones of the miniparsers are limited to particular subsets of syntactic constructs to be parsed in the input information encoding.
3 Assignments
0 Petitions
Accused Products
Abstract
A modular parser architecture and methods related thereto make use of a number of miniparsers. Each miniparser is capable of receiving input and generating an output dependent thereon. In one embodiment, a lexer or a miniparser capable of lexical analysis receives certain code and provides an abstract syntax tree. Each miniparser performs operations on a set of syntactical constructs to produce a corresponding output syntax tree, which in turn may become an input syntax tree for a next miniparser which may operate on a different set of syntactical constructs.
-
Citations
26 Claims
-
1. A multipass parser implementation comprising:
-
plural miniparsers each successively operable on a respective abstract syntax tree that corresponds to an input information encoding and that includes transformations of predecessor ones, if any, of the miniparsers, wherein respective ones of the miniparsers are limited to particular subsets of syntactic constructs to be parsed in the input information encoding. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A method of implementing a parser for an input information encoding, the method comprising:
-
defining a succession of miniparsers each operable on a respective parse state resulting from a predecessor one of the miniparsers, wherein each of the miniparsers recognizes only a particular subset of syntactic constructs to be parsed in the input information encoding. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20, 21, 22)
-
-
23. A method of parsing an information encoding, the method comprising:
-
performing plural successive transformations, each successive one of the transformations operating on an abstract syntax tree that is a result of a predecessor one of the transformations, each of the successive transformations handling only a subset of syntactic constructs to be recognized in the information encoding.
-
-
24. A computer program product encoded in at least one computer readable medium and comprising:
-
functional encodings of at least two miniparsers, a first one of the miniparsers executable to transform a first parse tree into a second parse tree and the second one of the miniparsers executable to transform the second parse tree into a third parse tree;
each of the at least two miniparsers recognizing only a subset of syntactic constructs to be parsed in an information encoding to which the first, second and third parse trees correspond. - View Dependent Claims (25)
-
-
26. An apparatus comprising:
-
encoded information substantially in accordance with a grammar;
multipass means for performing plural successive transformations on the encoded information, each successive transformation handling only a subset of syntactic constructs in accordance with the grammar.
-
Specification