aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2020-11-02 20:22:32 -0700
committerMelody Horn <melody@boringcactus.com>2020-11-02 20:22:32 -0700
commitd43b22c6fa59268a29bfe9eb685c3a55dccc257b (patch)
tree5b9419acb51cfcd3e8d366ef1ec233f320130168
parent8868b5fa2e8b9f40a31035c51519cce40e73f079 (diff)
downloadspec-d43b22c6fa59268a29bfe9eb685c3a55dccc257b.tar.gz
spec-d43b22c6fa59268a29bfe9eb685c3a55dccc257b.zip
refactor the numeric types
-rw-r--r--acknowledgements.rst4
-rw-r--r--index.rst1
-rw-r--r--language/scanning.rst20
3 files changed, 19 insertions, 6 deletions
diff --git a/acknowledgements.rst b/acknowledgements.rst
new file mode 100644
index 0000000..60aadfc
--- /dev/null
+++ b/acknowledgements.rst
@@ -0,0 +1,4 @@
+Acknowledgements
+================
+
+* https://matt.sh/howto-c
diff --git a/index.rst b/index.rst
index 8155b3c..2724bc0 100644
--- a/index.rst
+++ b/index.rst
@@ -59,6 +59,7 @@ Chapters
language/index
LICENSE
todo
+ acknowledgements
.. only:: html
diff --git a/language/scanning.rst b/language/scanning.rst
index a141b41..044441d 100644
--- a/language/scanning.rst
+++ b/language/scanning.rst
@@ -11,12 +11,20 @@ Scanning
Punctuators, string literals, and character constants do not require explicit separation from adjacent tokens.
keyword
- One of the literal words ``bool``, ``break``, ``case``,
- ``char``, ``const``, ``continue``, ``default``, ``do``, ``double``,
- ``else``, ``enum``, ``extern``, ``false``, ``float``, ``for``, ``fragile``,
- ``function``, ``if``, :crowbar:ref:`include <IncludeStatement>`, ``int``, ``long``, ``opaque``, ``return``,
- ``short``, ``signed``, ``sizeof``, ``struct``, ``switch``, ``true``, ``union``,
- ``unsigned``, ``void``, or ``while``.
+ One of the literal words ``bool``, ``break``, ``byte``,
+ ``case``, ``const``, ``continue``,
+ ``default``, ``do``,
+ ``else``, ``enum``,
+ ``false``, ``float32``, ``float64``, ``for``, ``fragile``, ``function``,
+ ``if``, :crowbar:ref:`include <IncludeStatement>`, ``int8``, ``int16``, ``int32``, ``int64``, ``intaddr``,
+ ``long``,
+ ``opaque``,
+ ``return``,
+ ``short``, ``sizeof``, ``struct``, ``switch``,
+ ``true``,
+ ``uint8``, ``uint16``, ``uint32``, ``uint64``, ``uintaddr``, ``union``,
+ ``void``,
+ or ``while``.
identifier
A nonempty sequence of characters blah blah blah