hokein added inline comments.

================
Comment at: clang-tools-extra/pseudo/include/clang-pseudo/Language.h:25
+  const TokenStream &Tokens;
+  SymbolID Lookahead;
+};
----------------
sammccall wrote:
> passing the position in the stream would be more general, there's no reason 
> in particular that the amount of lookahead the guard needs is the same as 
> what we have in GLR
> 
> OTOH as long as it *is* the same this is probably faster
+1, agree. This'd requires some non-trivial changes in the GLR because we use 
Lookahead in the Reduce rather than the token stream index. I think it is 
better to do it in a followup patch. I added a FIXME.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D130160

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to