Scope is still under development and is not ready for use.
It will be object-oriented programming langauge that compiles into FASM and then into an executable.
Warning
Scope currently only runs on Linux. Use WSL2 for Windows. Other platforms are planned.
These dependencies are required to build and run the compiler:
javamavenfasm
After these are installed, run:
# Clone...
$ git clone https://github.com/ScopeLang/Scope.git
# Build...
$ mvn packageYou can then use the ./scope bash script to build and run a Scope project in the ./env/ directory like so:
$ ./scope run -d helloWorldYou can also just directly use the ./target/scopelang-1.0-jar-with-dependencies.jar file like so:
$ java -jar target/scopelang-1.0-jar-with-dependencies.jar run -d env/helloWorldIf you want to install scope onto your system, do the following:
$ sudo ./installKeep in mind that this creates a batch script at /bin/scope which serves as a
direct link to ./target/scopelang-1.0-jar-with-dependencies.jar. You do not need to re-install every time you build.
ANTLR is in Java so Scope is in Java.