mirror of
https://github.com/ProgramSnail/Lama.git
synced 2026-01-06 05:58:14 +00:00
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:
parent
2cd7afe0c5
commit
0a26953318
11 changed files with 409 additions and 205 deletions
14
byterun/dune
14
byterun/dune
|
|
@ -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})))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue