]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rpcgen: add an XDR protocol lexer
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 19 Dec 2022 17:48:06 +0000 (12:48 -0500)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 3 Nov 2023 18:06:35 +0000 (14:06 -0400)
commit8c8b97685bd42f36e2cf2baf1c43e6ec836e1446
tree0b56b471a0fb6464120b29f48ccb05cfe98d519e
parenta24ab56da8b0382c4cc58d196fc9eab3bec485d9
rpcgen: add an XDR protocol lexer

This adds a lexer capable of handling the XDR protocol files.

The lexical rquirements are detailed in

  https://www.rfc-editor.org/rfc/rfc4506#section-6.2

pytest is introduced as a build dependancy for testing python
code.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
libvirt.spec.in
meson.build
scripts/meson.build
scripts/rpcgen/meson.build [new file with mode: 0644]
scripts/rpcgen/rpcgen/lexer.py [new file with mode: 0644]
scripts/rpcgen/tests/meson.build [new file with mode: 0644]
scripts/rpcgen/tests/simple.x [new file with mode: 0644]
scripts/rpcgen/tests/test_lexer.py [new file with mode: 0644]