annotate Resources/CodeGeneration/test/test1.jsonc @ 486:8e40355a172b bgo-commands-codegen

Unit tests OK for preambles, enums and structs in both TS and C++
author bgo-osimis
date Fri, 15 Feb 2019 14:30:26 +0100
parents 38997ceb9bc6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
473
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
1 /*
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
2 1 2 3 4 5 6 7
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
3 12345678901234567890123456789012345678901234567890123456789012345678901234567890
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
4 */
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
5 {
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
6 "root_name":"test1",
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
7 "types": [
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
8 {
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
9 "name":"B",
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
10 "kind":"struct",
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
11 "fields": [
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
12 {
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
13 "name":"someAs",
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
14 "type":"vector<A>"
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
15 },
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
16 {
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
17 "name":"someInts",
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
18 "type":"vector<int32>"
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
19 }
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
20 ]
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
21 },
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
22 {
474
38997ceb9bc6 Ongoing work on message code generation
bgo-osimis
parents: 473
diff changeset
23 "name":"C",
38997ceb9bc6 Ongoing work on message code generation
bgo-osimis
parents: 473
diff changeset
24 "kind":"struct",
38997ceb9bc6 Ongoing work on message code generation
bgo-osimis
parents: 473
diff changeset
25 "fields": [
38997ceb9bc6 Ongoing work on message code generation
bgo-osimis
parents: 473
diff changeset
26 {
38997ceb9bc6 Ongoing work on message code generation
bgo-osimis
parents: 473
diff changeset
27 "name":"someBs",
38997ceb9bc6 Ongoing work on message code generation
bgo-osimis
parents: 473
diff changeset
28 "type":"vector<B>"
38997ceb9bc6 Ongoing work on message code generation
bgo-osimis
parents: 473
diff changeset
29 },
38997ceb9bc6 Ongoing work on message code generation
bgo-osimis
parents: 473
diff changeset
30 {
38997ceb9bc6 Ongoing work on message code generation
bgo-osimis
parents: 473
diff changeset
31 "name":"ddd",
38997ceb9bc6 Ongoing work on message code generation
bgo-osimis
parents: 473
diff changeset
32 "type":"vector<D>"
38997ceb9bc6 Ongoing work on message code generation
bgo-osimis
parents: 473
diff changeset
33 }
38997ceb9bc6 Ongoing work on message code generation
bgo-osimis
parents: 473
diff changeset
34 ]
38997ceb9bc6 Ongoing work on message code generation
bgo-osimis
parents: 473
diff changeset
35 },
38997ceb9bc6 Ongoing work on message code generation
bgo-osimis
parents: 473
diff changeset
36 {
473
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
37 "name":"A",
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
38 "kind":"struct",
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
39 "fields": [
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
40 {
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
41 "name":"someStrings",
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
42 "type":"vector<string>"
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
43 },
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
44 {
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
45 "name":"someInts2",
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
46 "type":"vector<int32>"
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
47 }
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
48 ]
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
49 },
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
50 {
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
51 "name":"MovieType",
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
52 "kind":"enum",
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
53 "fields": [
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
54 {
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
55 "name":"Romcom"
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
56 },
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
57 {
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
58 "name":"Horror"
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
59 },
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
60 {
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
61 "name":"ScienceFiction"
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
62 },
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
63 {
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
64 "name":"Vegetables"
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
65 }
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
66 ]
486
8e40355a172b Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents: 474
diff changeset
67 },
8e40355a172b Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents: 474
diff changeset
68 {
8e40355a172b Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents: 474
diff changeset
69 "name":"CrispType",
8e40355a172b Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents: 474
diff changeset
70 "kind":"enum",
8e40355a172b Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents: 474
diff changeset
71 "fields": [
8e40355a172b Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents: 474
diff changeset
72 {
8e40355a172b Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents: 474
diff changeset
73 "name":"SaltAndPepper"
8e40355a172b Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents: 474
diff changeset
74 },
8e40355a172b Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents: 474
diff changeset
75 {
8e40355a172b Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents: 474
diff changeset
76 "name":"CreamAndChives"
8e40355a172b Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents: 474
diff changeset
77 },
8e40355a172b Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents: 474
diff changeset
78 {
8e40355a172b Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents: 474
diff changeset
79 "name":"Paprika"
8e40355a172b Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents: 474
diff changeset
80 },
8e40355a172b Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents: 474
diff changeset
81 {
8e40355a172b Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents: 474
diff changeset
82 "name":"Barbecue"
8e40355a172b Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents: 474
diff changeset
83 }
8e40355a172b Unit tests OK for preambles, enums and structs in both TS and C++
bgo-osimis
parents: 474
diff changeset
84 ]
473
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
85 }
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
86 ]
628941d63b8c Ongoing work. Parsing tests work
bgo-osimis
parents:
diff changeset
87 }