Skip to content

Commit

Permalink
Merge pull request #22 from mjp41/0-cooking-lasagna
Browse files Browse the repository at this point in the history
Restructuring and more files
  • Loading branch information
xFrednet authored Oct 8, 2024
2 parents 7ec863f + 1c58f26 commit 5cdc978
Show file tree
Hide file tree
Showing 28 changed files with 2,388 additions and 2,319 deletions.
15 changes: 12 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,18 @@ set (TRIESTE_ENABLE_TESTING OFF)
FetchContent_MakeAvailable_ExcludeFromAll(trieste)
set(CMAKE_CXX_STANDARD 20)

add_library(rt OBJECT src/rt/rt.cc)

add_library(lang OBJECT src/lang/lang.cc src/lang/interpreter.cc)
add_library(rt OBJECT src/rt/rt.cc src/rt/ui/mermaid.cc)

add_library(
lang OBJECT
src/lang/lang.cc
src/lang/interpreter.cc
src/lang/passes/parse.cc
src/lang/passes/grouping.cc
src/lang/passes/call_stmts.cc
src/lang/passes/flatten.cc
src/lang/passes/bytecode.cc
)
target_link_libraries(lang PRIVATE trieste::trieste)

add_executable(verona_dyn src/main.cc)
Expand Down
169 changes: 0 additions & 169 deletions src/api.h

This file was deleted.

1 change: 0 additions & 1 deletion src/lang/bytecode.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,3 @@ inline const trieste::TokenDef Jump{"jump", trieste::flag::print};
inline const trieste::TokenDef JumpFalse{"jump_false", trieste::flag::print};
inline const trieste::TokenDef Print("print", trieste::flag::print);
inline const trieste::TokenDef IterNext("iter_next");

Loading

0 comments on commit 5cdc978

Please sign in to comment.