Calico CSharp

From IPRE Wiki
Jump to: navigation, search

Calico also has a simplified C# interpreter that allows basic C# commands. For more information on the implementation, please see:

Limitations:

  • Errors currently go to console window
  • No functions or classes can be defined in interpreted C#

Examples

Using the Graphics module:

Graphics.Window win = new Graphics.Window("Hello");

Using the Myro robotics API:

csharp> Myro.Scribbler robot = new Myro.Scribbler();
csharp> Myro.Scribbler robot = new Myro.Scribbler("/dev/rfcomm0", 38400);

Showing some C# features:

using System;
foreach (int a in new int [] {1, 2, 3})
    System.Console.WriteLine(a);