diff options
author | Haojian Wu <hokein.wu@gmail.com> | 2022-05-05 14:10:18 +0200 |
---|---|---|
committer | Haojian Wu <hokein.wu@gmail.com> | 2022-05-16 10:38:16 +0200 |
commit | 1a65c491be712f89b36af9d828b6ccce02de37db (patch) | |
tree | 74356a5adde14415519b35a7d9f6253aa6f79f68 /lldb/source/Commands/CommandObjectScript.cpp | |
parent | 7ba484660b74d5b9d0b342a45cdb0ce8fd5b04bb (diff) | |
download | llvm-1a65c491be712f89b36af9d828b6ccce02de37db.zip llvm-1a65c491be712f89b36af9d828b6ccce02de37db.tar.gz llvm-1a65c491be712f89b36af9d828b6ccce02de37db.tar.bz2 |
[pseudo] Support parsing variant target symbols.
With this patch, we're able to parse smaller chunks of C++ code (statement,
declaration), rather than translation-unit.
The start symbol is listed in the grammar in a form of `_ :=
statement`, each start symbol has a dedicated state (`_ := • statement`).
We create and track all these separate states in the LRTable. When we
start parsing, we lookup the corresponding state to start the parser.
LR pasing table changes with this patch:
- number of states: 1467 -> 1471
- number of actions: 82891 -> 83578
- size of the table (bytes): 334248 -> 336996
Differential Revision: https://reviews.llvm.org/D125006
Diffstat (limited to 'lldb/source/Commands/CommandObjectScript.cpp')
0 files changed, 0 insertions, 0 deletions