EdnaScript is Copyright (C) 2014 Elod Csirmaz
This program is free software; you may redistribute it and/or modify it under the terms of the MIT License.
ednascript.pl < INFILE.edna > OUTFILE.js
- The compiler also allows type declarations before method names and argument names, which are simply deleted during preprocessing. For example:
#method bool hasprop(string property)
The compiler aborts if neither #super nor #nosuper is used in a constructor of a class that has a parent class.
A file can include multiple classes.
#class MyPoint #constructor(float x, float y) this._x = x; this._y = y; #-constructor #method string info() return ('('+this._x+','+this._y+')'); #-method #-class