summaryrefslogtreecommitdiffstats
path: root/docs/language-reference/03-preprocessor.md
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2020-03-18 11:20:20 -0700
committerGitHub <noreply@github.com>2020-03-18 11:20:20 -0700
commita8a23a6c21437086df4499d4d30b8b5b47bcd1ff (patch)
treeedda6ce745bbac710e204e32e88c04edea3ecdf7 /docs/language-reference/03-preprocessor.md
parent21bbd3cf1b809a52611dcbdfec57c029454a5cc4 (diff)
First pass at a language reference (#1279)
* First pass at a language reference We already had the `language-guide.md` document under `docs/`, but this is an attempt to introduce a more full-featured reference to the Slang language and its features. Right now it is mostly focused on the syntax and what the language allows to be declared, and it is a little light on semantic details throughout (mostly relying on familiarity with C to explain the things that are left unsaid). Even so, this hopefully provides a starting point to continue adding more detail. * typos and other small fixes
Diffstat (limited to 'docs/language-reference/03-preprocessor.md')
-rw-r--r--docs/language-reference/03-preprocessor.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/language-reference/03-preprocessor.md b/docs/language-reference/03-preprocessor.md
new file mode 100644
index 000000000..984d9ce72
--- /dev/null
+++ b/docs/language-reference/03-preprocessor.md
@@ -0,0 +1,17 @@
+Preprocessor
+============
+
+Slang supports a C-style preprocessor with the following directives:
+
+* `#include`
+* `#define`
+* `#undef`
+* `#if`, `#ifdef`, `#ifndef`
+* `#else`, `#elif`
+* `#endif`
+* `#error`
+* `#warning`
+* `#line`
+* `#pragma`
+
+> Note: This section is not yet complete.