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 computer-related article is a stub. You can help Wikipedia by expanding it.

See also

External link

See also: Packrat parser, Computer, Context-free grammar, Dynamic programming, Linear time, Memoization, Mutual recursion, Parser, Parsing