diff options
| author | Tim Foley <tim.foley.is@gmail.com> | 2017-08-12 16:14:48 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-12 16:14:48 -0700 |
| commit | bb66d6eddd649d8861cecefa2d6ccb7a28a827bc (patch) | |
| tree | 63fdd927ca39462176d506ea7bb99a5b8b8bfa87 /source/slang/slang.cpp | |
| parent | 495f88167527945e680e091d49b5705f5f1af1f9 (diff) | |
| parent | f1bda6ada269716dd28653222a10d2c11dd052c5 (diff) | |
Merge pull request #158 from tfoleyNV/syntax-lookup
Data-driven parsing of modifiers
Diffstat (limited to 'source/slang/slang.cpp')
| -rw-r--r-- | source/slang/slang.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index 11d9e6e86..2bacb28ca 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -20,6 +20,20 @@ namespace Slang { Session::Session() { + // Initialize the lookup table of syntax classes: + + #define SYNTAX_CLASS(NAME, BASE) mapNameToSyntaxClass.Add(#NAME, getClass<NAME>()); + +#include "object-meta-begin.h" +#include "syntax-base-defs.h" +#include "expr-defs.h" +#include "decl-defs.h" +#include "modifier-defs.h" +#include "stmt-defs.h" +#include "type-defs.h" +#include "val-defs.h" +#include "object-meta-end.h" + // Make sure our source manager is initialized builtinSourceManager.initialize(nullptr); |
