samples/f.ysl2
author Hartmut Goebel <h.goebel@crazy-compilers.com>
Tue, 17 Mar 2020 10:26:38 +0100
changeset 43 fb35b9db9ca1
parent 0 76005e62091d
permissions -rw-r--r--
Move data files into the Python package.

The packe directory is now always searched for include files, after
all other directoreis given in $YML_PATH.
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
    }
}