Rune - Add multi-character single-quoted constants
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 18 Jan 2019 05:30:30 +0000 (21:30 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 4 Nov 2019 05:01:07 +0000 (21:01 -0800)
commitc094e2a1b825ea0c0783596ad229b534029af74c
treef58210a0380350ed0a05cdc2981c23890f3c3449
parent636d93d873130b939e5ac4bfe9a25dcfefde0003
Rune - Add multi-character single-quoted constants

* Supports multi-character single-quoted constants.  Constants
  between 1 and 4 characters are directly encoded by shifting
  each character into the LSB.  The type depends on the length:

  length 0 or 1 uint8_t
  length 2 uint16_t
  length 3 or 4 uint32_t

* Character constants that are 5 characters or longer will be hashed with
  the ISCSI crc32 algorithm, bit 31 of the result is set, and the result
  is returned as an unsigned 32-bit integer.
docs/grammer.html
libgen/gen_exp.c
libgen/run_exp.c
librune/Makefile
librune/export.h
librune/icrc32.c [new file with mode: 0644]
librune/resolve.c
librune/strtable.c
tests/sstr.d [new file with mode: 0755]