Building and Testing
The current implementation of SeedLang runs in the environment of .Net or Unity.
Pre-requisites
-
Install Microsoft .NET.
-
If you want to build and verify the documentation locally, please install Jekyll as well.
-
Clone the SeedLang source code then enter the top level dir:
git clone https://github.com/SeedV/SeedLang.git
cd SeedLang
Build SeedLang
dotnet build csharp
To make a release build:
dotnet build -c Release csharp
Unit Tests
To run the unit tests of SeedLang:
dotnet test csharp
Run SeedLang.Shell
SeedLang.Shell is a simple interpreter of SeedLang. To start it:
dotnet run --project csharp/src/SeedLang.Shell
To print the usage info of SeedLang.Shell:
dotnet run --project csharp/src/SeedLang.Shell -- --help
Build and Verify the Documentation
The source files of the SeedLang documentation is located at https://github.com/SeedV/SeedLang/tree/main/docs.
The documentation is automatically built with GitHub Pages/Jekyll and released at https://seedv.github.io/SeedLang/.
Before submitting any content update of the documentation, please verify the update by serving it locally with Jekyll:
pushd docs
bundle exec jekyll serve
popd
Benchmarks
There are a couple of pre-defined benchmarks to verify the performance of SeedLang.
dotnet run --project csharp/benchmark/SeedLang.Benchmark