novolis-language / getting-started.md
Getting started
Install the substrate package that matches your host:
dotnet add package Novolis.Language.Text
dotnet add package Novolis.Language.Diagnostics
dotnet add package Novolis.Language.Syntax
dotnet add package Novolis.Language.ExecutionFor the RoboSharp implementation:
dotnet add package Novolis.Language.RoboSharpvar compiler = new RoboSharpCompiler();
var compilation = compiler.Compile("""
move 2
turn right
print "hello"
""");
if (compilation.Succeeded)
{
var session = new RoboSharpExecutionSession(compilation.Program!);
while (!session.Snapshot.IsCompleted)
{
var step = session.Step();
Console.WriteLine(step.Description);
}
}