diff --git a/.gitignore b/.gitignore index 2d8adde..dd2024c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,8 +3,10 @@ node_modules package-lock.json .clang-format *.exe -a.out +*.out .idea 1.cc .vscode tmp +drift +g++ \ No newline at end of file diff --git a/Makefile b/Makefile index 1978792..12c0385 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ DIR_SRC = ./src DIR_TMP = ./tmp -CC = g++ +# Local project compiler soft link to /usr/local/Cellar/gcc/10.2.0_3/bin/g++-10 +CC = ./g++ SRC = $(wildcard ${DIR_SRC}/*.cpp) TMP = $(wildcard $(DIR_TMP)/*.o) diff --git a/README b/README index 2edc212..f200a46 100644 --- a/README +++ b/README @@ -1,15 +1,27 @@ The Drift Programming Language Implementation +- switch CC field in Makefile and specify your g++ compiler path + To build: - > g++ -std=c++20 drift.cc - > mv a.out drift + > make + > make install + +To install: + > export PATH=$PWD:$PATH To run: - > drift # REPL MODE - > drift # FILE MODE + > drift # REPL MODE + > drift # FILE MODE + + > drift -d # REPL AND DEBUG MODE + > drift -d # FILE AND DEBUG MODE + +To clean: + + > make clean For documentation and project architecuture, visit the official website https://drift-lang.fun diff --git a/drift b/drift deleted file mode 100644 index d60533b..0000000 Binary files a/drift and /dev/null differ