Packrat parser



         


A packrat parser is a form of parser similar to a recursive descent parser in construction, except that during the parsing process it memoizes the intermediate results of all invocations of the mutually recursive parsing functions. Because of this memoization, a packrat parser has the ability to parse many context-free grammars and any parsing expression grammar (including some that do not represent context-free languages) in linear time.

This article is a stub. You can help BambooWeb by .

[Top]




  View Live Article   This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License