The Sleipnir compiler compiles Yggdrasill code to WebAssembly or JavaScript
Sleipnir CLI can be installed through go install.
go install github.com/Ygg-Drasill/Sleipnir/cmd/sleipnir@latest
The main integration test uses samples located inside test/samples/valid
and test/samples/valid
.
All invalid samples are expected to produce an error when compiled, while valid samples are expected to compile without errors.
Optionally, for much higher test quality a result value can be expected from valid samples using the following format in the sample files:
<source code>
expect:<result>