| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- # 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
- package(default_visibility = ["//executable_semantics:__subpackages__"])
- cc_library(
- name = "ast",
- hdrs = ["ast.h"],
- deps = [
- ":declaration",
- ":library_name",
- ],
- )
- cc_library(
- name = "class_definition",
- hdrs = ["class_definition.h"],
- deps = [
- ":member",
- ":source_location",
- "//common:ostream",
- "@llvm-project//llvm:Support",
- ],
- )
- cc_library(
- name = "declaration",
- srcs = ["declaration.cpp"],
- hdrs = [
- "declaration.h",
- ],
- deps = [
- ":class_definition",
- ":function_definition",
- ":member",
- ":pattern",
- ":source_location",
- "//common:ostream",
- "//executable_semantics/common:nonnull",
- "@llvm-project//llvm:Support",
- ],
- )
- cc_library(
- name = "expression",
- srcs = ["expression.cpp"],
- hdrs = ["expression.h"],
- deps = [
- ":paren_contents",
- "//common:indirect_value",
- "//common:ostream",
- "//executable_semantics/common:arena",
- "//executable_semantics/common:error",
- "@llvm-project//llvm:Support",
- ],
- )
- cc_test(
- name = "expression_test",
- srcs = ["expression_test.cpp"],
- deps = [
- ":expression",
- ":paren_contents",
- "@llvm-project//llvm:gtest",
- "@llvm-project//llvm:gtest_main",
- ],
- )
- cc_library(
- name = "function_definition",
- srcs = ["function_definition.cpp"],
- hdrs = ["function_definition.h"],
- deps = [
- ":expression",
- ":source_location",
- ":statement",
- "@llvm-project//llvm:Support",
- ],
- )
- cc_library(
- name = "member",
- srcs = ["member.cpp"],
- hdrs = ["member.h"],
- deps = [
- ":pattern",
- ":source_location",
- "//common:ostream",
- ],
- )
- cc_library(
- name = "library_name",
- hdrs = ["library_name.h"],
- )
- cc_library(
- name = "paren_contents",
- hdrs = ["paren_contents.h"],
- deps = [
- ":source_location",
- "//executable_semantics/common:error",
- ],
- )
- cc_library(
- name = "pattern",
- srcs = ["pattern.cpp"],
- hdrs = ["pattern.h"],
- deps = [
- ":expression",
- ":source_location",
- "//common:ostream",
- "//executable_semantics/common:arena",
- "//executable_semantics/common:error",
- "@llvm-project//llvm:Support",
- ],
- )
- cc_test(
- name = "pattern_test",
- srcs = ["pattern_test.cpp"],
- deps = [
- ":paren_contents",
- ":pattern",
- "@llvm-project//llvm:Support",
- "@llvm-project//llvm:gtest",
- "@llvm-project//llvm:gtest_main",
- ],
- )
- cc_library(
- name = "source_location",
- hdrs = ["source_location.h"],
- deps = ["//common:ostream"],
- )
- cc_library(
- name = "statement",
- srcs = ["statement.cpp"],
- hdrs = ["statement.h"],
- deps = [
- ":expression",
- ":pattern",
- ":source_location",
- "//common:check",
- "//common:ostream",
- "//executable_semantics/common:arena",
- "@llvm-project//llvm:Support",
- ],
- )
|