mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
This minimizes use of the Heap, and moves us toward not using it at compile time.
61 lines
1.3 KiB
Python
61 lines
1.3 KiB
Python
# 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
|
|
|
|
load("@rules_cc//cc:defs.bzl", "cc_library")
|
|
|
|
package(default_visibility = ["//executable_semantics:__subpackages__"])
|
|
|
|
# TODO: It may be helpful to break this apart.
|
|
cc_library(
|
|
name = "interpreter",
|
|
srcs = [
|
|
"action.cpp",
|
|
"interpreter.cpp",
|
|
"typecheck.cpp",
|
|
"value.cpp",
|
|
],
|
|
hdrs = [
|
|
"action.h",
|
|
"interpreter.h",
|
|
"typecheck.h",
|
|
"value.h",
|
|
],
|
|
deps = [
|
|
":address",
|
|
":containers",
|
|
"//common:check",
|
|
"//executable_semantics:tracing_flag",
|
|
"//executable_semantics/ast:declaration",
|
|
"//executable_semantics/ast:expression",
|
|
"//executable_semantics/ast:function_definition",
|
|
"//executable_semantics/ast:member",
|
|
"//executable_semantics/ast:statement",
|
|
],
|
|
)
|
|
|
|
cc_library(
|
|
name = "field_path",
|
|
hdrs = ["field_path.h"],
|
|
)
|
|
|
|
cc_library(
|
|
name = "address",
|
|
hdrs = ["address.h"],
|
|
deps = [
|
|
":field_path",
|
|
],
|
|
)
|
|
|
|
cc_library(
|
|
name = "containers",
|
|
srcs = [
|
|
"list_node.h",
|
|
],
|
|
hdrs = [
|
|
"dictionary.h",
|
|
"stack.h",
|
|
],
|
|
deps = ["//common:check"],
|
|
)
|