Jump to content

Pratt parser

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by DrRespect (talk | contribs) at 06:09, 21 July 2019 (External links: Added parsers linkbox at bottom). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In computer science, a Pratt parser is an improved recursive descent parser that associates semantics with tokens instead of grammar rules.[1] It was first described by Vaughan Pratt in the 1973 paper "Top down operator precedence",[2] and was treated in much more depth in a Masters Thesis under his supervision.[3] Pratt designed the parser originally to implement the CGOL programming language. Douglas Crockford used the technique to build JSLint.[4]

See also

References

  1. ^ Simple Top-Down Parsing in Python
  2. ^ Pratt, Vaughan. "Top down operator precedence." Proceedings of the 1st Annual ACM SIGACT-SIGPLAN Symposium on Principles of Programming Languages (1973).
  3. ^ Van De Vanter, Michael L. "A Formalization and Correctness Proof of the CGOL Language System." (Master's Thesis). MIT Laboratory for Computer Science Technical Report MIT-LCS-TR-147 (Cambridge, Massachusetts). 1975.
  4. ^ Crockford, D (2007-02-21). "Top Down Operator Precedence".