Make it possible to specify more that one byte with `%` v0.16.0
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 6 Oct 2023 20:52:52 +0000 (16:52 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 6 Oct 2023 20:56:51 +0000 (16:56 -0400)
commit6dd69a2ad08c21939a8756468e859ce423094712
treea32225ad0fa76dc260543d30c2405a5e237aafc7
parent43937a34eb86e4e944bc7c0ea3887e0d17d63682
Make it possible to specify more that one byte with `%`

This patch makes it possible to specify more than one consecutive bytes
in binary by using two or more `%` prefixes. The number of `%` indicates
the number of subsequent bytes.

This makes it possible to put a 32-bit binary constant, for example,
without any delimiter. Instead of:

    %11011101 %11110010 %01001101 %11101101

you may write:

    %%%%11011101111100100100110111101101

I don't have a choice to use something (number of `%` here) to indicate
the number of bytes after that because this won't work:

    %11011101111100100100110111101101

This last example is equivalent to:

    %11011101 11 11 00 10 01 00 11 01 11 10 11 01

which really is 13 bytes.

This patch also fixes `normand.py` for Python 3.4.

Change-Id: I4945c9fc5925ab7a32c9015c41b6593db893cdd3
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
README.adoc
normand/normand.py
pyproject.toml
tests/pass-bin-const-multi.nt [new file with mode: 0644]
tests/pass-readme-learn-const-4.nt
This page took 0.023701 seconds and 4 git commands to generate.