diff options
| author | Sam McCall <sam.mccall@gmail.com> | 2022-07-19 10:54:52 +0200 |
|---|---|---|
| committer | Sam McCall <sam.mccall@gmail.com> | 2022-07-21 22:42:31 +0200 |
| commit | 3132e9cd7c9fda63f7c0babf8bd5f6d755ce9027 (patch) | |
| tree | 2d1d8af77c74834f2f0b6959f19a940ee17515e5 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | b17baa1db613a2ce777aa122feb87488750a64d0 (diff) | |
[pseudo] Key guards by RuleID, add guards to literals (and 0).
After this, NUMERIC_CONSTANT and strings should parse only one way.
There are 8 types of literals, and 24 valid (literal, TokenKind) pairs.
This means adding 8 new named guards (or 24, if we want to assert the token).
It seems fairly clear to me at this point that the guard names are unneccesary
indirection: the guards are in fact coupled to the rule signature.
(Also add the zero guard I forgot in the previous patch.)
Differential Revision: https://reviews.llvm.org/D130066
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
