Parse forest is the output of the GLR parser, it is a tree-like DAG
which presents all possible parse trees without duplicating subparse structures.
This is a patch split from https://reviews.llvm.org/D121150.
Paths
| Differential D122139
[pseudo] Introduce parse forest. ClosedPublic Authored by hokein on Mar 21 2022, 7:39 AM.
Details
Summary Parse forest is the output of the GLR parser, it is a tree-like DAG This is a patch split from https://reviews.llvm.org/D121150.
Diff Detail
Event Timelinehokein mentioned this in D121150: [pseudo] Implement the GLR parsing algorithm..Mar 21 2022, 7:43 AM sammccall added inline comments.
This revision is now accepted and ready to land.Mar 21 2022, 9:46 AM Closed by commit rG62d5f254ccd0: [pseudo] Introduce parse forest. (authored by hokein). · Explain WhyMar 24 2022, 6:49 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 416934 clang-tools-extra/pseudo/include/clang-pseudo/Forest.h
clang-tools-extra/pseudo/lib/CMakeLists.txt
clang-tools-extra/pseudo/lib/Forest.cpp
clang-tools-extra/pseudo/unittests/CMakeLists.txt
clang-tools-extra/pseudo/unittests/ForestTest.cpp
|
I'd replace ", e.g." with a period. (There are in fact no other cases, and likely never will be, so "e.g." is a bit misleading)