From e4088cd602bd4d5a72fea67a787b1319acfc044d Mon Sep 17 00:00:00 2001 From: Theresa Foley <10618364+tangent-vector@users.noreply.github.com> Date: Thu, 22 Aug 2024 11:54:27 -0700 Subject: Add skeleton of a language reference. (#4808) The files being checked in here were initially written 2-3 years ago. They are very clearly incomplete, outdated and, quite often, inaccurate. The intention of this change is to get an initial skeleton in place for the large-scale structure of a language reference (for now avoiding the term "specification" and all the weight it carries). Future commits should be able to add to flesh out this skeleton and start to make the document more complete and more accurate. --- docs/language-reference/03-preprocessor.md | 19 +++++++++++++++++++ 1 file changed, 19 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..de579efe0 --- /dev/null +++ b/docs/language-reference/03-preprocessor.md @@ -0,0 +1,19 @@ +> Note: This document is a work in progress. It is both incomplete and, in many cases, inaccurate. + +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