Closed ShawnClake closed 5 years ago
A fully featured file will now have the following format
from blah import MyBlah;
from foo import Bar;
from bar import Foo;
ahoptions({'name': 'somename'});
extends(MyBlah);
implements(Foo, Bar);
var1 = "some val";
var2 = "some other val";
script construct(var1)
{
me.var1 = var1;
}
static someOtherMethod()
{
}
grammar added, not implemented
this was swapped to allow for methods being defined prior to the code statements being run
The idea is that no procedural code should be exposed in these files anymore. Similar to how a Java file looks like, but without the class declaration itself.
Remove sig from grammar as this function will now be handled via the constructor method.
Example: