YML 2.1.2 released: the Null Function
Moving the possibilities of YML forward to express C like DSLs, I added a feature called Null Function.
An example:
decl _ +type +name alias func;
decl in +type +name, out +type +name,
inout +type +name;
decl interface +name;
interface Testcase {
void f(in string input);
long getOptions();
}
compiles to:
<interface name="Testcase">
<func type="void" name="f">
<parms>
<in type="string" name="input"/>
</parms>
</func>
<func type="long" name="getOptions"/>
</interface>
publiziert Mon, 04 May 2009 22:55:38 +0200