mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-29 18:24:57 +01:00
* add command-line flag to enable/disable tracing output * adding missing exit for pattern variable in wrong context and a test case for it (#324) * Update executable_semantics/interpreter/interpreter.cpp comment on separate line as code Co-authored-by: Jon Meow <46229924+jonmeow@users.noreply.github.com> * fix interpreter's handling of optional else of if statement (#323) * Update pattern_variable_fail.golden due to error (#334) * Use llvm's CommandLine for parsing (#332) * GitHub testing action (#331) Co-authored-by: Chandler Carruth <chandlerc@gmail.com> * add copyright * Create a Dictionary abstraction over the raw Cons list. (#327) * Create a Dictionary abstraction over the raw Cons list. * renamed Cons and some methods of Dictionary, various other cleanup * Update executable_semantics/tracing_flag.cpp added namespace comment Co-authored-by: Jon Meow <46229924+jonmeow@users.noreply.github.com> * added a comment to cpp file Co-authored-by: Jon Meow <46229924+jonmeow@users.noreply.github.com> Co-authored-by: Dave Abrahams <dabrahams@google.com> Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
36 lines
1002 B
Python
36 lines
1002 B
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",
|
|
"assoc_list.h",
|
|
"interpreter.h",
|
|
"list_node.h",
|
|
"stack.h",
|
|
"typecheck.h",
|
|
"value.h",
|
|
],
|
|
deps = [
|
|
"//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",
|
|
],
|
|
)
|