Talk:Packrat parser

Latest comment: 5 months ago by Alkiryk in topic Example in "Syntax" section

The phrase "In computing..." has been removed, as it implies a greater ubiquity of the term "packrat parser" than has yet been evidenced in the literture. This is a fairly recent advancement.

-- QTJ 20:16, 13 October 2006 (UTC)Reply

Figure in section "Syntax"

edit

The "example" subsection ends with a figure in the middle of the text. This figure should be put properly in a figure box and referenced (or not) in the text Cellomario (talk) 12:42, 7 July 2023 (UTC)Reply

Overall a very well written page, especially the part about memoization techniques. The only suggestion that I can make is that the average reader would benefit from a more divulgative approach, both in the text and in the references Cellomario (talk) 13:01, 7 July 2023 (UTC)Reply

Review

edit

The article is clear and well written. The main aspects of the topic are understandable by someone with no particular expertise in the area. Fdrc.Mtll (talk) 14:31, 7 July 2023 (UTC)Reply

Review

edit

The description of the Packrat parser is very detailed and provides a useful example to understand the underlying algorithm.

mscuttari (talk) 14:55, 7 July 2023 (UTC)Reply

Example in "Syntax" section

edit

The grammar given in the "Example" subsection doesn't seem to work:

Without a cut-off it accepts every input string. Adding a wrapper rule like doesn't work, because then inputs like are rejected.

You can see this by roughly tracking the execution:

  1. input: the wrapper with runs.
    1. left: eventually runs: consumes initial , runs on ,
      1. left: eventually runs: consumes initial , runs on ,
        1. left: eventually succeeds, consumes all remaining input, returns.
      2. no input left: can't match the final ,
      3. left: runs instead, matches , returns.
    2. left: consumes , returns.
  2. left: some input remains, so wrapper rejects the palindrome.

So to me it looks like at least in this particular case consumes only from the whole input string.

Can somebody correct the example? Alkiryk (talk) 13:20, 9 December 2025 (UTC)Reply