[Lldb-commits] [lldb] [LLDB] Add Lexer (with tests) for DIL (Data Inspection Language). (PR #123521)

via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 29 10:58:45 PST 2025


cmtice wrote:

> > If DIL is not allowed to recognize any operators except period, arrow, and parentheses, it seems to me that it won't be any more powerful than the current 'frame variable' implementation, in which case what is the point of having it at all? (As a matter of fact, it would be less powerful, since 'frame variable' also recognizes square brackets and star as valid operators and treats them accordingly).
> > At the same time, I understand the concern about wanting to be able to parse synthetic variable names, which can contain arbitrary operator-like symbols. So I have a tentative proposal: How about insisting that synthetic variable names need to be surrounded by special delimiters, such as backquote or slash? Or having some other way of marking them as special?
> 
> These are unfortunately visible to the user, and they will have to type them in `frame var` to access the child. So we can't make them something ugly.

I don't want to make them ugly, but I *do* think we need to ask the user to distinguish them in some way. Otherwise I don't see how we can make DIL any more powerful than the current 'frame variable'.

https://github.com/llvm/llvm-project/pull/123521


More information about the lldb-commits mailing list