Generate libvirt constants from libvirt sources.

- Add a yacc-based parser and a hand-written lexer to read the
remote_protocol.x file from libvirt's sources.
- Use the new parser to generate the constants used to communicate with
libvirt.
This commit is contained in:
Geoff Hickey
2017-11-02 19:42:44 -04:00
parent 8b2644f7ff
commit 5a6654f07a
11 changed files with 1340 additions and 75 deletions

4
internal/lvgen/.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
# Ignore the yacc intermediate files.
y.go
y.output