Modular parser architecture with mini parsers
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.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 27 · Forward citations: 44.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A multipass parser implementation encoded on at least one computer-readable medium, the 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, 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.
- Claim 2Depends on #1
The multipass parser implementation of claim 1 , wherein, for at least some of the miniparsers, the respective abstract syntax tree is an output of a respective predecessor one of the miniparsers.
- Claim 3Depends on #1
The multipass parser implementation of claim 1 , wherein, for at least some of the miniparsers, respective input and output abstract syntax trees are separately encod
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 44 total)
References Cited — Backward Prior Art (27)
Non-Patent Literature (5)
- "Three Models For Descriptions of Languages", Noam Chomsky, MIT, 1956, IRE Trans. Infor, Theory, pp. 113-124.
- Beck, Kent, Smalltalk Best Practice Patterns, 1997 by Prentice Hall PTR, pp. 13-16, pp. 171-189.
- Calingaert, Peter, Assemblers, Compilers, and Program Translation, 1979 Computer Science Press, Inc., pp. 73-232.
- Compilers Principles, Techniques and Tools, Aho et al, Chapters 1-5, Sep. 12, 1985.
- IBM Technical Bulletin, Mar. 1, 2002, System and Method For JAVA serialization Compatibility using XML, 2 pages.