From a8a23a6c21437086df4499d4d30b8b5b47bcd1ff Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Wed, 18 Mar 2020 11:20:20 -0700 Subject: 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 --- docs/language-reference/03-preprocessor.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 docs/language-reference/03-preprocessor.md (limited to 'docs/language-reference/03-preprocessor.md') 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. -- cgit v1.2.3