added cabal build system

This commit is contained in:
2025-09-06 02:53:54 +01:00
parent 17a0263af3
commit 4fd4ef20ab
8 changed files with 62 additions and 18 deletions

2
build.sh Normal file → Executable file
View File

@@ -1 +1 @@
ghc Main.hs -o zorth && ./zorth > out.asm && nasm -f elf64 out.asm -o out.o && ld out.o -o a.out && ./a.out
cabal build && dist-newstyle/build/x86_64-linux/ghc-9.6.7/zorth-0.0.6.9/x/zorth/build/zorth/zorth && ./a.out