Welcome to jcore - a collection of modules and test cases directly written in jask.
Make sure you clone and install the interpreter repository and that it is ready to run:
jask --versionAfterwards, you can use jcore modules directly:
use "jcore/math" as math
print(math::isPrime(42))All jcore modules are embedded directly into the interpreters executable.
If you are running the interpreter via dotnet run, we assume, that you have cloned the interpreter repository next to jcore, so you only have to point the interpreter to the desired directory for the test cases.
├── interpreter/
└── jcore/
└── test/
├── test_basics.jask
├── test_date.jask
├── test_math.jask
[...]
For example, run the basic tests from your interpreter directory:
dotnet run -- --allow-stdout --allow-stdin --allow-read --allow-write --input="../jcore/test/test_basics.jask"Have fun scripting jask!