Christian Decker
d67a28227c
tools: Update formatting of python tools
2017-07-11 12:11:12 +02:00
Janus
22544d7789
Script for extracting structured protocol messages
...
This changes extract-formats.py so that other scripts can use it, but retains normal functionality.
The new script (structured.py) parses the CSV variant and shows a representation of an OrderedMap.
This could be used to write parsers.
2017-07-11 12:11:12 +02:00
Christian Decker
a11d234e18
tools: Disable alignment check when we have a variable length field
...
If we have a variable length field we should not check the alignment
of the following fields, the check will be off anyway.
2017-07-11 11:09:03 +02:00
Rusty Russell
8ee57b9773
tools: update for new format.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-05-11 11:20:36 +09:30
Rusty Russell
ed107e4ef0
tools/extract-formats.py: allow fields with _ in them.
...
eg. BOLT 4.
See also: #141
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-03-31 14:14:29 +10:30
Rusty Russell
347ce303ce
tools/extract-formats.py: accept fields from BOLT 4.
...
Some have no data, and many use constant names and | in their type numbers.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-01-28 14:10:04 +01:00
Rusty Russell
85ac709641
tools/extract-formats.py: neaten a little.
...
If we hand an arg, we should use it.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-01-28 14:10:04 +01:00
Rusty Russell
b228a2e77d
BOLT 2: remove attempts to align signatures.
...
They're really a blob of bytes, and we weren't aligning them correctly in
two cases anyway. This gets rid of gratuitous padding, too.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2016-11-29 12:58:13 +10:30
Rusty Russell
fab307b57d
tools/extract-formats.py: extract message definitions and check alignment.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2016-11-23 11:54:14 +10:30