mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
Initial support for expression parsing. (#455)
This commit is contained in:
@@ -13,14 +13,29 @@
|
||||
#error "Must define the x-macro to use this file."
|
||||
#endif
|
||||
|
||||
CARBON_PARSE_NODE_KIND(CodeBlockEnd)
|
||||
CARBON_PARSE_NODE_KIND(CodeBlock)
|
||||
// Declarations.
|
||||
CARBON_PARSE_NODE_KIND(DeclarationEnd)
|
||||
CARBON_PARSE_NODE_KIND(EmptyDeclaration)
|
||||
CARBON_PARSE_NODE_KIND(FunctionDeclaration)
|
||||
CARBON_PARSE_NODE_KIND(Identifier)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user