Hello, and welcome to my blog where I will talk about Topaz. I'm creating this blog for two reasons: First, so you can get more detailed information about the project.Currently the only things that exists is a broken early VM (virtual machine, the thing that actually executes the program), supporting only a small subset of the features I want Topaz to have.
So, what exactly is Topaz?
Topaz is (going to be) a high-level scripting language, supporting classes, inheritance, polymorphism, delegates, etc...
What does Topaz look like?
The exact syntax of Topaz is not finished yet, but I'm imagining something like this:
// A simple class that holds a value,
// using only one instance per value
class ExampleClass{
private exampleMember;
private function exampleClass(arg){
exampleMember = arg;
}
private static _instances;
public static function getInstance(arg){
if(!_instances) _instances = new Hash(Any, ExampleClass);
return (
_instances.hasKey(arg) ?
_instances[arg] :
_instances[arg] = new ExampleClass(arg)
);
}
}
But the syntax / supported features are still not decided. The second reason for creating this blog is to get feedback. I want to know how YOU want it to be!
0 comments:
Post a Comment