aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-30 03:09:04 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-30 03:09:04 +0200
commit035bfe5e81b80ef9df03414c7c567093ce26629a (patch)
tree846a0ba912fbcd2d63abe6d9a0981593806c249b /tools
parentebbe7a1672c5a8750a57019c4df6d259dda12a28 (diff)
downloadliberty-035bfe5e81b80ef9df03414c7c567093ce26629a.tar.gz
liberty-035bfe5e81b80ef9df03414c7c567093ce26629a.tar.xz
liberty-035bfe5e81b80ef9df03414c7c567093ce26629a.zip
Document the recently added scripts
Diffstat (limited to 'tools')
-rw-r--r--tools/lxdrgen.awk18
1 files changed, 0 insertions, 18 deletions
diff --git a/tools/lxdrgen.awk b/tools/lxdrgen.awk
index 2b4adb6..effbc52 100644
--- a/tools/lxdrgen.awk
+++ b/tools/lxdrgen.awk
@@ -3,24 +3,6 @@
# Copyright (c) 2022, Přemysl Eric Janouch <p@janouch.name>
# SPDX-License-Identifier: 0BSD
#
-# You may read RFC 4506 for context, however it is only a source of inspiration.
-# Grammar is easy to deduce from the parser.
-#
-# Native types: bool, u{8,16,32,64}, i{8,16,32,64}, string
-#
-# Don't define any new types, unless you hate yourself, then it's okay to do so.
-# Backends tend to be a pain in the arse, for different reasons.
-#
-# All numbers are encoded in big-endian byte order.
-# Booleans are one byte each.
-# Strings must be valid UTF-8, use u8<> to lift that restriction.
-# String and array lengths are encoded as u32.
-# Enumeration values automatically start at 1, and are encoded as i8.
-# Any struct or union field may be a variable-length array.
-#
-# Message framing is done externally, but is advised to also prefix u32 lengths,
-# unless this role is already filled by, e.g., WebSocket.
-#
# Usage: env LC_ALL=C awk -f lxdrgen.awk -f lxdrgen-{c,go,mjs}.awk \
# -v PrefixCamel=Foo foo.lxdr > foo.{c,go,mjs} | {clang-format,gofmt,...}