Files
carbon-lang/parser/parse_node_kind.def
T

42 lines
1.4 KiB
Modula-2

// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
// Note that this is an X-macro header.
//
// It does not use `#include` guards, and instead is designed to be `#include`ed
// after the x-macro is defined in order for its inclusion to expand to the
// desired output. The x-macro for this header is `CARBON_PARSE_NODE_KIND`. The
// definition provided will be removed at the end of this file to clean up.
#ifndef CARBON_PARSE_NODE_KIND
#error "Must define the x-macro to use this file."
#endif
// Declarations.
CARBON_PARSE_NODE_KIND(DeclarationEnd)
CARBON_PARSE_NODE_KIND(EmptyDeclaration)
CARBON_PARSE_NODE_KIND(FunctionDeclaration)
CARBON_PARSE_NODE_KIND(DeclaredName)
CARBON_PARSE_NODE_KIND(ParameterListEnd)
CARBON_PARSE_NODE_KIND(ParameterList)
CARBON_PARSE_NODE_KIND(FileEnd)
// Statements.
CARBON_PARSE_NODE_KIND(CodeBlockEnd)
CARBON_PARSE_NODE_KIND(CodeBlock)
CARBON_PARSE_NODE_KIND(ExpressionStatement)
// Expressions.
CARBON_PARSE_NODE_KIND(Literal)
CARBON_PARSE_NODE_KIND(NameReference)
CARBON_PARSE_NODE_KIND(ParenExpression)
CARBON_PARSE_NODE_KIND(ParenExpressionEnd)
CARBON_PARSE_NODE_KIND(DesignatorExpression)
CARBON_PARSE_NODE_KIND(DesignatedName)
CARBON_PARSE_NODE_KIND(CallExpression)
CARBON_PARSE_NODE_KIND(CallExpressionComma)
CARBON_PARSE_NODE_KIND(CallExpressionEnd)
#undef CARBON_PARSE_NODE_KIND