equal
deleted
inserted
replaced
13 |
13 |
14 variable "stdlib", "ns:GetStdLibs()"; |
14 variable "stdlib", "ns:GetStdLibs()"; |
15 |
15 |
16 variable "extensions", "ns:GetExtensions()"; |
16 variable "extensions", "ns:GetExtensions()"; |
17 |
17 |
18 variable "all", "$project | $stdlib | $extensions"; |
18 variable "all_types", "($project | $stdlib | $extensions)/ppx:types"; |
19 |
|
20 |
19 |
21 template "ppx:project" { |
20 template "ppx:project" { |
22 apply "ppx:instances/ppx:configurations/ppx:configuration"; |
21 apply "ppx:instances/ppx:configurations/ppx:configuration"; |
23 } |
22 } |
24 |
23 |
43 when "@typeName=$instance_type" { |
42 when "@typeName=$instance_type" { |
44 value "ns:AddInstance($pou_instance_path)"; |
43 value "ns:AddInstance($pou_instance_path)"; |
45 } |
44 } |
46 otherwise { |
45 otherwise { |
47 variable "type_name" > «@typeName» |
46 variable "type_name" > «@typeName» |
48 apply """$all/ppx:types/ppx:pous/ppx:pou[@name=$type_name] | \ |
47 apply """$all_types/ppx:pous/ppx:pou[@name=$type_name] | \ |
49 $all/ppx:types/ppx:dataTypes/ppx:dataType[@name=$type_name]""" { |
48 $all_types/ppx:dataTypes/ppx:dataType[@name=$type_name]""" { |
50 with "instance_path" > «$pou_instance_path» |
49 with "instance_path" > «$pou_instance_path» |
51 } |
50 } |
52 } |
51 } |
53 } |
52 } |
54 } |
53 } |
81 when "@name=$instance_type" { |
80 when "@name=$instance_type" { |
82 value "ns:AddInstance($variable_path)"; |
81 value "ns:AddInstance($variable_path)"; |
83 } |
82 } |
84 otherwise { |
83 otherwise { |
85 variable "type_name" > «@name» |
84 variable "type_name" > «@name» |
86 apply """$all/ppx:types/ppx:pous/ppx:pou[@name=$type_name] | \ |
85 apply """$all_types/ppx:pous/ppx:pou[@name=$type_name] | \ |
87 $all/ppx:types/ppx:dataTypes/ppx:dataType[@name=$type_name]""" { |
86 $all_types/ppx:dataTypes/ppx:dataType[@name=$type_name]""" { |
88 with "instance_path" > «$variable_path» |
87 with "instance_path" > «$variable_path» |
89 } |
88 } |
90 } |
89 } |
91 } |
90 } |
92 } |
91 } |