A .NET Framework implementation of a Dassie compiler. For more information about the language, including code examples, visit the dassie repository. For now, here's "Hello World!" in Dassie:
println "Hello World!"
This uses the built-in println
function. Since Dassie runs on the CLR, you can also use the .NET Console
module.
import System
Console.WriteLine "Hello World!"
Assuming the above code is contained in a file called hello.ds
, it can be compiled using the command dc hello.ds
, yielding an executable called hello.exe
. Alternatively, the command dc build
can be used to compile all .ds source files in the current folder structure.