[PATCH] D121150: [pseudo][WIP] Implement a GLR parser.

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 2 12:35:17 PDT 2022


hokein updated this revision to Diff 426488.
hokein marked an inline comment as done.
hokein added a comment.
Herald added a project: clang-tools-extra.

Updates:

- a derived version of D122408 <https://reviews.llvm.org/D122408> and D121368 <https://reviews.llvm.org/D121368>;
- refine the APIs, getting rid of the GLR parser, and providing fine-grained pieces to allow writing tests easier;
- add unittests for the algorithm and a simple smoke lit test;
- when we fail to parse the input, we return an opaque forest node rather than a nullptr;
- rebase to the main branch;


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121150/new/

https://reviews.llvm.org/D121150

Files:
  clang-tools-extra/pseudo/include/clang-pseudo/Forest.h
  clang-tools-extra/pseudo/include/clang-pseudo/GLR.h
  clang-tools-extra/pseudo/lib/CMakeLists.txt
  clang-tools-extra/pseudo/lib/GLR.cpp
  clang-tools-extra/pseudo/test/glr.cpp
  clang-tools-extra/pseudo/tool/ClangPseudo.cpp
  clang-tools-extra/pseudo/unittests/CMakeLists.txt
  clang-tools-extra/pseudo/unittests/GLRTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121150.426488.patch
Type: text/x-patch
Size: 47207 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220502/1856cd6f/attachment-0001.bin>


More information about the cfe-commits mailing list