handle.h 574 B

123456789101112131415161718
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. #ifndef CARBON_TOOLCHAIN_PARSE_HANDLE_H_
  5. #define CARBON_TOOLCHAIN_PARSE_HANDLE_H_
  6. #include "toolchain/parse/context.h"
  7. namespace Carbon::Parse {
  8. // Declare handlers for each parse state.
  9. #define CARBON_PARSE_STATE(Name) auto Handle##Name(Context& context) -> void;
  10. #include "toolchain/parse/state.def"
  11. } // namespace Carbon::Parse
  12. #endif // CARBON_TOOLCHAIN_PARSE_HANDLE_H_