sammccall accepted this revision. sammccall added a comment. This revision is now accepted and ready to land.
Very nice! Not sure why I didn't see this before :-) ================ Comment at: clang-tools-extra/pseudo/lib/GLR.cpp:266 using Sequence = llvm::SmallVector<const ForestNode *, Rule::MaxElements>; - KeyedQueue<Family, Sequence> Sequences; + struct SeqNodeSpec { + // The base nodes are the heads after popping the GSS nodes we are reducing. ---------------- This name is a bit vague/abstract. Maybe RootedSequence, or PushSpec? ================ Comment at: clang-tools-extra/pseudo/lib/GLR.cpp:267 + struct SeqNodeSpec { + // The base nodes are the heads after popping the GSS nodes we are reducing. + // We don't care which rule yielded each base. If Family.Symbol is S, the ---------------- nit: A base node is the head... (no reason to talk about them collectively in this context) ================ Comment at: clang-tools-extra/pseudo/lib/GLR.cpp:268 + // The base nodes are the heads after popping the GSS nodes we are reducing. + // We don't care which rule yielded each base. If Family.Symbol is S, the + // base includes an item X := ... • S ... and since the grammar is ---------------- the second part of this comment belongs below where we decorrelate the two (under "grab the sequences and bases for each family"), not here Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127283/new/ https://reviews.llvm.org/D127283 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits