I would like to use it to analyze C++ code. I know that LR is difficult to handle C++ syntax. But if I only want to locate all variable/function/class definitions, instead of generating the full AST. Is it possible to do it in lezer?
There will eventually be a C++ Lezer grammar, so that we can at least get decent highlighting and folding in the editor, but I don’t think it’ll ever be 100% reliable, due to the issues you mention.