BUILD 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. load("@rules_cc//cc:defs.bzl", "cc_library")
  5. package(default_visibility = ["//executable_semantics:__subpackages__"])
  6. # TODO: It may be helpful to break this apart.
  7. cc_library(
  8. name = "interpreter",
  9. srcs = [
  10. "action.cpp",
  11. "interpreter.cpp",
  12. "typecheck.cpp",
  13. "value.cpp",
  14. ],
  15. hdrs = [
  16. "action.h",
  17. "interpreter.h",
  18. "typecheck.h",
  19. "value.h",
  20. ],
  21. deps = [
  22. ":address",
  23. ":containers",
  24. "//common:check",
  25. "//executable_semantics:tracing_flag",
  26. "//executable_semantics/ast:declaration",
  27. "//executable_semantics/ast:expression",
  28. "//executable_semantics/ast:function_definition",
  29. "//executable_semantics/ast:member",
  30. "//executable_semantics/ast:statement",
  31. ],
  32. )
  33. cc_library(
  34. name = "field_path",
  35. hdrs = ["field_path.h"],
  36. )
  37. cc_library(
  38. name = "address",
  39. hdrs = ["address.h"],
  40. deps = [
  41. ":field_path",
  42. ],
  43. )
  44. cc_library(
  45. name = "containers",
  46. srcs = [
  47. "list_node.h",
  48. ],
  49. hdrs = [
  50. "dictionary.h",
  51. "stack.h",
  52. ],
  53. deps = ["//common:check"],
  54. )