Castle: The best Real-Time/Embedded/HighTech language EVER. Attempt 2
Révision | 7d5caf66e65b91878bd51a52ac9241cbc56e73bd (tree) |
---|---|
l'heure | 2023-09-29 04:44:36 |
Auteur | Albert Mietus < albert AT mietus DOT nl > |
Commiter | Albert Mietus < albert AT mietus DOT nl > |
ASIS/BUSY: Protocol-with-parms: rendering with types seems oke - more tests needed (and a bit of design
@@ -1,6 +1,7 @@ | ||
1 | 1 | default: all |
2 | 2 | |
3 | 3 | all: current demo test mutmut pyanalyse XXX missing todo diff_TestDoubles |
4 | + | |
4 | 5 | NOTES: CC2CpyNote |
5 | 6 | include Mk/RPy.mk |
6 | 7 |
@@ -28,7 +29,7 @@ | ||
28 | 29 | include Mk/testing.mk |
29 | 30 | include Mk/helpful.mk |
30 | 31 | |
31 | -diff_TestDoubles: | |
32 | +diff_TestDoubles: | |
32 | 33 | diff -w -rs TestDoubles/reference/ TestDoubles/_generated/ |
33 | 34 | |
34 | 35 | missing: missing_visitor missing_serialization |
@@ -3,7 +3,6 @@ | ||
3 | 3 | # (C) Albert Mietus, 2023. Part of Castle/CCastle project |
4 | 4 | |
5 | 5 | #### |
6 | - | |
7 | 6 | from CC import buildin |
8 | 7 | from CC import base |
9 | 8 |
@@ -19,9 +18,6 @@ | ||
19 | 18 | CC_P_StartSieve_newMax = 1 |
20 | 19 | |
21 | 20 | |
22 | - | |
23 | - | |
24 | - | |
25 | 21 | cc_P_StartSieve = buildin.CC_B_Protocol(name="StartSieve", |
26 | 22 | kind=buildin.ProtocolKind.Event, |
27 | 23 | inherit_from=cc_P_Protocol |
@@ -3,9 +3,7 @@ | ||
3 | 3 | {# parameters: ``protocols``: PTH.Sequence[aigr.EventProtocol] |
4 | 4 | #} |
5 | 5 | |
6 | -{% import "CastleMacros.jinja2" as m %} | |
7 | - | |
8 | -{#GAM Note: do not put {% block ... inside the loop - does not work#} | |
6 | +{%- import "CastleMacros.jinja2" as m -%} | |
9 | 7 | |
10 | 8 | {%- macro Str_or_Type(t) -%} |
11 | 9 | {%- if t is string -%} |
@@ -15,7 +13,7 @@ | ||
15 | 13 | {%- endif -%} |
16 | 14 | {%- endmacro -%} |
17 | 15 | |
18 | -{% for proto in protocols %} | |
16 | +{%- for proto in protocols %} | |
19 | 17 | {{- m.ProtocolName(proto.name) }} = buildin.CC_B_Protocol(name="{{ proto.name }}", |
20 | 18 | {% if proto.typedParameters %} |
21 | 19 | parameters=( |
@@ -8,7 +8,6 @@ | ||
8 | 8 | # {#- Hi-lock: (( "{[{%#]\\|[}%#]}" (0 'markdown-language-keyword-face prepend))) -#} |
9 | 9 | # {#- Hi-lock: end -- highlight jinja2 #} |
10 | 10 | |
11 | - | |
12 | 11 | {% import "CastleMacros.jinja2" as m1 %} |
13 | 12 | {#------------------------------------#} |
14 | 13 |