From db825f3cdebf4b1031347b0d48b9e478cd84a371 Mon Sep 17 00:00:00 2001 From: Cori Barker Date: Mon, 19 Jan 2026 09:37:29 +0000 Subject: utility files --- .gitignore | 2 ++ CMakeLists.txt | 18 ++++++++++++++++++ test.bl | 6 ++++++ 3 files changed, 26 insertions(+) create mode 100644 .gitignore create mode 100644 CMakeLists.txt create mode 100644 test.bl diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..969e7ee --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.cache +build/ diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..9694ac2 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,18 @@ +cmake_minimum_required(VERSION 3.10) + +# Set the project name and language +project(blc CXX) + +# Set the C++ standard +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + +# Add the include directory +include_directories(${PROJECT_SOURCE_DIR}/include) + +# Gather all source files from the src directory +file(GLOB SOURCES "src/**/*.cpp", "src/*.cpp") +message(STATUS "Sources: ${SOURCES}") + +# Define the executable +add_executable(blc ${SOURCES}) diff --git a/test.bl b/test.bl new file mode 100644 index 0000000..5f28b41 --- /dev/null +++ b/test.bl @@ -0,0 +1,6 @@ +int a = 5; +int b = 6; + +int c = a * b; + +int num = 2 + 2 * 2; -- cgit v1.2.3