bytecode compiler impirsts and external functions call support, byyterun imports and external functions calls parsing, initial impl of module manager

This commit is contained in:
ProgramSnail 2024-11-29 13:45:03 +03:00
parent 2cd7afe0c5
commit 0a26953318
11 changed files with 409 additions and 205 deletions

View file

@ -5,8 +5,20 @@
(:main src/cli.c src/interpreter.c)
(:parser src/parser.c)
(:utils src/types.c)
(:runtime ../runtime/runtime.a)
(:module_manager module_manager.o))
(mode
(promote (until-clean)))
(action
(run gcc -Iinclude/ %{main} %{parser} %{utils} %{runtime} %{module_manager} -lstdc++ -o %{target})))
(rule
(target module_manager.o)
(deps
(:include (source_tree include))
(:src src/module_manager.cpp)
(:runtime ../runtime/runtime.a))
(mode
(promote (until-clean)))
(action
(run gcc -Iinclude/ %{main} %{parser} %{utils} %{runtime} -o %{target})))
(run g++ -Iinclude/ -c %{src} -o %{target})))