samples/f.ysl2
changeset 0 76005e62091d
equal deleted inserted replaced
-1:000000000000 0:76005e62091d
       
     1 include yslt.yml2
       
     2 
       
     3 tstylesheet {
       
     4     function stType {
       
     5         param "type";
       
     6 
       
     7         choose {
       
     8             when "$type='long'" > DINT
       
     9             when "$type='short'" > INT
       
    10         }
       
    11     }
       
    12 
       
    13     function cType {
       
    14         param "type";
       
    15 
       
    16         when "$type='long'" > int32_t
       
    17         when "$type='short'" > int16_t
       
    18     }
       
    19 }