samples/ydl2idl.ysl2
author heck <heck@pep.foundation>
Thu, 04 Feb 2021 01:41:09 +0100
changeset 71 adb8b1a1d517
parent 0 76005e62091d
permissions -rw-r--r--
used a perl script[0] to convert .hgignore to .gitigore

[0] https://github.com/devzendo/hgignore-to-gitignore
include yslt.yml2

tstylesheet {
    template "module" {
        | module «name(*)» {
        apply "*/interface";
        | };
    }

    template "interface" {
        | interface «name(*)» {
        apply "*/*", mode="func";
        | };
    }

    template "*", mode="func"
        | «name(.)» «name(*)»(`apply "*/*", mode="parms";`);

    template "*", mode="parms" {
        > «name(.)» «name(*)» «name(*/*)»
        if "position() != last()" > , 
    }
}