samples/f.ysl2
author Volker Birk <vb@pep-project.org>
Thu, 21 Jan 2021 01:46:34 +0100
changeset 70 58043c7bcc51
parent 0 76005e62091d
permissions -rw-r--r--
renamed in Python 3
include yslt.yml2

tstylesheet {
    function stType {
        param "type";

        choose {
            when "$type='long'" > DINT
            when "$type='short'" > INT
        }
    }

    function cType {
        param "type";

        when "$type='long'" > int32_t
        when "$type='short'" > int16_t
    }
}