-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
1,051 additions
and
264 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,7 +154,7 @@ jobs: | |
-DCMAKE_C_COMPILER=${{ matrix.config.cc }} \ | ||
-DCMAKE_CXX_COMPILER=${{ matrix.config.cxx }} \ | ||
-DARK_SANITIZERS=${{ matrix.config.sanitizers }} \ | ||
-DARK_BUILD_EXE=On -DARK_BUILD_MODULES=On -DARK_MOD_ALL=On | ||
-DARK_BUILD_EXE=On -DARK_BUILD_MODULES=On -DARK_MOD_ALL=On -DARK_BUILD_PARSER_TESTS=On | ||
- name: Add SQLite deps | ||
if: startsWith(matrix.config.name, 'Windows') | ||
|
@@ -179,17 +179,6 @@ jobs: | |
-DARK_SANITIZERS=${{ matrix.config.sanitizers }} | ||
cmake --build build --config $BUILD_TYPE | ||
- name: Configure & build CMake parser tests | ||
shell: bash | ||
run: | | ||
cd tests/parser | ||
cmake -Bbuild \ | ||
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \ | ||
-DCMAKE_C_COMPILER=${{ matrix.config.cc }} \ | ||
-DCMAKE_CXX_COMPILER=${{ matrix.config.cxx }} \ | ||
-DARK_SANITIZERS=${{ matrix.config.sanitizers }} | ||
cmake --build build --config $BUILD_TYPE | ||
- name: Organize files for upload | ||
shell: bash | ||
run: | | ||
|
@@ -208,9 +197,13 @@ jobs: | |
- name: Organize temp artifact | ||
shell: bash | ||
run: | | ||
mkdir -p temp/parser/ | ||
mkdir -p temp/parser/build/ | ||
cp -r tests/cpp temp/ | ||
cp -r tests/parser temp/ | ||
cp build/parser temp/build/ || true | ||
cp build/libArkReactor.* temp/build/ || true | ||
cp build/$BUILD_TYPE/parser.exe temp/build/ || true | ||
cp build/$BUILD_TYPE/ArkReactor.dll temp/build/ || true | ||
- name: Upload artifact | ||
uses: actions/[email protected] | ||
|
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
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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#ifndef ARK_MODULE_HPP | ||
#define ARK_MODULE_HPP | ||
|
||
#include <Ark/Compiler/AST/Node.hpp> | ||
|
||
namespace Ark::internal | ||
{ | ||
// TODO store something better than just the AST (AST+what we are importing as private/public/namespaced... vs all) | ||
// so that we can remember the order in which we encountered imports. | ||
struct Module | ||
{ | ||
Node ast; | ||
bool has_been_processed = false; // TODO document this | ||
}; | ||
} | ||
|
||
#endif // ARK_MODULE_HPP |
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
Oops, something went wrong.