Ygg-Drasill / Sleipnir

Compiler for Ygg-Drasill Programming Language
MIT License
2 stars 0 forks source link

Sleipnir

image

The Sleipnir compiler compiles Yggdrasill code to WebAssembly or JavaScript

Installation

Sleipnir CLI can be installed through go install.

go install github.com/Ygg-Drasill/Sleipnir/cmd/sleipnir@latest

Testing

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>