| // Copyright 2017 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // No header inclusion guards _sic_ as this may be re-included with |
| // different X macro arguments. |
| |
| #if !defined(TOKEN) |
| #define TOKEN(Name) |
| #endif |
| |
| #if !defined(KEYWORD) |
| #define KEYWORD(Name, Spelling) |
| #endif |
| |
| // Control and whitespace |
| TOKEN(NotAToken) |
| TOKEN(EndOfFile) |
| TOKEN(Comment) |
| TOKEN(DocComment) |
| |
| // Identifiers and constants |
| TOKEN(Identifier) |
| TOKEN(NumericLiteral) |
| TOKEN(StringLiteral) |
| |
| // Punctuation. |
| TOKEN(LeftParen) |
| TOKEN(RightParen) |
| TOKEN(LeftSquare) |
| TOKEN(RightSquare) |
| TOKEN(LeftCurly) |
| TOKEN(RightCurly) |
| TOKEN(LeftAngle) |
| TOKEN(RightAngle) |
| |
| TOKEN(Dot) |
| TOKEN(Comma) |
| TOKEN(Semicolon) |
| TOKEN(Colon) |
| TOKEN(Question) |
| TOKEN(Equal) |
| TOKEN(Ampersand) |
| |
| TOKEN(Arrow) |
| |
| // Keywords |
| KEYWORD(As, "as") |
| KEYWORD(Library, "library") |
| KEYWORD(Using, "using") |
| |
| KEYWORD(Array, "array") |
| KEYWORD(Handle, "handle") |
| KEYWORD(Request, "request") |
| KEYWORD(String, "string") |
| KEYWORD(Vector, "vector") |
| |
| KEYWORD(Const, "const") |
| KEYWORD(Enum, "enum") |
| KEYWORD(Interface, "interface") |
| KEYWORD(Struct, "struct") |
| KEYWORD(Table, "table") |
| KEYWORD(Union, "union") |
| KEYWORD(XUnion, "xunion") |
| |
| KEYWORD(Error, "error") |
| |
| KEYWORD(True, "true") |
| KEYWORD(False, "false") |
| |
| KEYWORD(Reserved, "reserved") |
| |
| #undef KEYWORD |
| #undef TOKEN |