-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up code (should be squashed with previous) - broken C tests (#66)
* Fix syntax in GitHub Actions * Refactor project to include under src * Add Python test file
- Loading branch information
1 parent
a1075e1
commit bbcec76
Showing
63 changed files
with
526 additions
and
580 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
venv/ | ||
|
||
# Ignore Python Caches | ||
compiler/results | ||
/results/ | ||
__pycache__/ | ||
|
||
# Ignore CMake's build directory | ||
|
This file was deleted.
Oops, something went wrong.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
# Make src public to tests | ||
include_directories("${CMAKE_SOURCE_DIR}") | ||
|
||
# Add libraries | ||
## Compiler Compatibility Files | ||
add_subdirectory("${CMAKE_SOURCE_DIR}/src/bool") | ||
add_subdirectory("${CMAKE_SOURCE_DIR}/src/common") | ||
|
||
## Standard Library Wrappers | ||
add_subdirectory("${CMAKE_SOURCE_DIR}/src/mem") | ||
|
||
## Custom Library | ||
add_subdirectory("${CMAKE_SOURCE_DIR}/src/arr") | ||
add_subdirectory("${CMAKE_SOURCE_DIR}/src/tbl") | ||
add_subdirectory("${CMAKE_SOURCE_DIR}/src/rstr") | ||
|
||
# Make src public to tests | ||
include_directories("${CMAKE_SOURCE_DIR}") | ||
|
||
# Add libraries | ||
## Compiler Compatibility Files | ||
add_subdirectory("${CMAKE_SOURCE_DIR}/src/bool") | ||
add_subdirectory("${CMAKE_SOURCE_DIR}/src/common") | ||
|
||
## Standard Library Wrappers | ||
add_subdirectory("${CMAKE_SOURCE_DIR}/src/mem") | ||
|
||
## Custom Library | ||
add_subdirectory("${CMAKE_SOURCE_DIR}/src/arr") | ||
add_subdirectory("${CMAKE_SOURCE_DIR}/src/tbl") | ||
add_subdirectory("${CMAKE_SOURCE_DIR}/src/rstr") | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions
8
src/arr/CMakeLists.txt → src/c_interpretter/arr/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Create the 'arr' target | ||
add_library("arr" "${CMAKE_SOURCE_DIR}/src/arr/arr.c") | ||
|
||
# Link executable to libraries | ||
# Create the 'arr' target | ||
add_library("arr" "${CMAKE_SOURCE_DIR}/src/arr/arr.c") | ||
|
||
# Link executable to libraries | ||
target_link_libraries("arr" PRIVATE "mem" "common") |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#pragma once | ||
|
||
#ifndef __STDC_VERSION__ /* C89 */ | ||
typedef enum { false = 0, true = 1 } bool; | ||
#else | ||
#include <stdbool.h> | ||
#pragma once | ||
|
||
#ifndef __STDC_VERSION__ /* C89 */ | ||
typedef enum { false = 0, true = 1 } bool; | ||
#else | ||
#include <stdbool.h> | ||
#endif |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.