This project was made by following and adapting the book: "Crafting Interpreters" by Bob Nystrom, which can be found at: https://craftinginterpreters.com/
.
Please ensure:
- a version of clang that supports c++17 is installed.
- atleast cmake 3.22 is installed.
- Create a folder named third_party and clone google test into this folder.
googletest can be found at: https://github.com/google/googletest
- Go to the scripts folder and execute the ./build_script.sh.
- Navigate back to the root and to run the executable, run './build/MyProgrammingLanguage_App' or to run an example program run './build/MyProgrammingLanguage_App example_programs/fib.vi'.
- If that doesn't work or you are on Windows, then:
- Create and navigate to the build folder in the root.
- run 'cmake ..' (ie. put the output of cmake into the build folder)
- run 'make'
- Navigate back to the root and to run the executable, run './build/MyProgrammingLanguage_App' or to run an example program run './build/MyProgrammingLanguage_App example_programs/fib.vi'.