diff options
author | Markus Armbruster <armbru@redhat.com> | 2024-02-16 15:58:38 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2024-02-26 10:43:56 +0100 |
commit | 3d035cd2cca66488f6f478a93b231c302466116b (patch) | |
tree | efc6a66a887adae344e23ccd0b9c42fde6c2224b /tests/unit/test-crypto-afsplit.c | |
parent | 0b82a7440c22056745a925d0b1c070e18534aa0e (diff) |
qapi: Rewrite doc comment parser
QAPISchemaParser is a conventional recursive descent parser. Except
QAPISchemaParser.get_doc() delegates most of the doc comment parsing
work to a state machine in QAPIDoc. The state machine doesn't get
tokens like a recursive descent parser, it is fed tokens.
I find this state machine rather opaque and hard to maintain.
Replace it by a conventional parser, all in QAPISchemaParser. Less
code, and (at least in my opinion) easier to understand.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240216145841.2099240-15-armbru@redhat.com>
Tested-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'tests/unit/test-crypto-afsplit.c')
0 files changed, 0 insertions, 0 deletions