
Early testing of my programming language
By:
Zotoaster on
Dec 7th, 2011 | syntax:
Groovy | size: 0.34 KB | hits: 95 | expires: Never
function main()
{
var test:Foo;
var ptest:System.IRunnable* = &test;
ptest->Run();
}
package System
{
interface IRunnable
{
function Run();
}
}
class Foo [System.IRunnable]
{
function Run()
{
print "hello";
}
}
class Bar [System.IRunnable]
{
var x = "goodbye";
function Run()
{
print x;
}
}