aaronp-zomg 1.0.2.20080827232412
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +25 -0
- data/Manifest.txt +238 -0
- data/README.txt +59 -0
- data/Rakefile +43 -0
- data/bin/omfg +56 -0
- data/lib/scanner.rex +169 -0
- data/lib/yacc.y +861 -0
- data/lib/zomg.rb +22 -0
- data/lib/zomg/idl.rb +14 -0
- data/lib/zomg/idl/nodes/attribute.rb +15 -0
- data/lib/zomg/idl/nodes/binary.rb +19 -0
- data/lib/zomg/idl/nodes/constant.rb +15 -0
- data/lib/zomg/idl/nodes/interface.rb +13 -0
- data/lib/zomg/idl/nodes/interface_header.rb +14 -0
- data/lib/zomg/idl/nodes/member.rb +14 -0
- data/lib/zomg/idl/nodes/node.rb +54 -0
- data/lib/zomg/idl/nodes/operation.rb +17 -0
- data/lib/zomg/idl/nodes/parameter.rb +18 -0
- data/lib/zomg/idl/nodes/typedef.rb +13 -0
- data/lib/zomg/idl/nodes/union.rb +14 -0
- data/lib/zomg/idl/parser.rb +54 -0
- data/lib/zomg/idl/visitable.rb +15 -0
- data/lib/zomg/idl/visitors/duhr.rb +24 -0
- data/lib/zomg/idl/visitors/ruby_sexp.rb +204 -0
- data/lib/zomg/idl/visitors/sexp.rb +274 -0
- data/lib/zomg/version.rb +3 -0
- data/test/assets/array/array1.idl +60 -0
- data/test/assets/array/array2.idl +38 -0
- data/test/assets/array/array3.idl +8 -0
- data/test/assets/array/array4.idl +7 -0
- data/test/assets/array/array5.idl +80 -0
- data/test/assets/attribute/grid_0attribs_2methods.idl +16 -0
- data/test/assets/attribute/grid_1ROattribs_1attribs_0methods.idl +19 -0
- data/test/assets/attribute/grid_1ROattribs_1attribs_1methods.idl +19 -0
- data/test/assets/attribute/grid_1ROattribs_1attribs_2methods.idl +17 -0
- data/test/assets/attribute/grid_1ROattribs_1methods.idl +16 -0
- data/test/assets/attribute/grid_1ROattribs_2methods.idl +16 -0
- data/test/assets/attribute/grid_1attribs_1methods.idl +17 -0
- data/test/assets/attribute/grid_1attribs_2methods.idl +17 -0
- data/test/assets/attribute/grid_2ROattribs_0methods.idl +16 -0
- data/test/assets/attribute/grid_2ROattribs_1methods.idl +16 -0
- data/test/assets/attribute/grid_2ROattribs_2methods.idl +16 -0
- data/test/assets/attribute/grid_2attribs_0methods.idl +19 -0
- data/test/assets/attribute/grid_2attribs_1methods.idl +19 -0
- data/test/assets/attribute/grid_2attribs_2methods.idl +19 -0
- data/test/assets/comment/c_style_comments.idl +63 -0
- data/test/assets/comment/comment1.idl +57 -0
- data/test/assets/comment/cpp_style_comments.idl +168 -0
- data/test/assets/comment/shortform.idl +0 -0
- data/test/assets/complex/TestCodeSets.idl +10 -0
- data/test/assets/complex/TestIntfContext.idl +13 -0
- data/test/assets/complex/TestIntfLongLong.idl +51 -0
- data/test/assets/complex/TestIntfWChar.idl +52 -0
- data/test/assets/complex/any1.idl +22 -0
- data/test/assets/complex/complex1.idl +495 -0
- data/test/assets/complex/complex2.idl +730 -0
- data/test/assets/complex/complex3.idl +181 -0
- data/test/assets/complex/complex4.idl +181 -0
- data/test/assets/complex/interop_wchar.idl +60 -0
- data/test/assets/constant/constant1.idl +37 -0
- data/test/assets/constant/constant2.idl +29 -0
- data/test/assets/constant/constant3.idl +50 -0
- data/test/assets/constant/constant4.idl +21 -0
- data/test/assets/constant/constant5.idl +65 -0
- data/test/assets/constant/constant6.idl +144 -0
- data/test/assets/constant/constant7.idl +30 -0
- data/test/assets/enum/enum1.idl +13 -0
- data/test/assets/exception/TestIntfExceptions.idl +69 -0
- data/test/assets/exception/TestIntfExceptionsExt_2_0.idl +34 -0
- data/test/assets/exception/TestIntfExceptionsExt_2_3.idl +24 -0
- data/test/assets/exception/ex1.idl +6 -0
- data/test/assets/exception/ex2.idl +18 -0
- data/test/assets/exception/ex3.idl +10 -0
- data/test/assets/exception/ex4.idl +20 -0
- data/test/assets/exception/sc.idl +0 -0
- data/test/assets/exception/simple1.idl +18 -0
- data/test/assets/exception/simple2.idl +25 -0
- data/test/assets/factory/factory1.idl +77 -0
- data/test/assets/factory/objref.idl +25 -0
- data/test/assets/forward/forward.idl +15 -0
- data/test/assets/forward/forward1.idl +13 -0
- data/test/assets/forward/fwd_incl1.idl +6 -0
- data/test/assets/forward/fwd_incl2.idl +7 -0
- data/test/assets/include/a.idl +23 -0
- data/test/assets/include/b.idl +16 -0
- data/test/assets/include/employee.idl +12 -0
- data/test/assets/include/include1.idl +10 -0
- data/test/assets/include/include2.idl +5 -0
- data/test/assets/include/manager.idl +10 -0
- data/test/assets/include/pragma.idl +41 -0
- data/test/assets/include/rookie.idl +13 -0
- data/test/assets/include/rookiemanager.idl +15 -0
- data/test/assets/include/sample.idl +58 -0
- data/test/assets/include/sample_incl.idl +406 -0
- data/test/assets/inherit/IDL1.idl +18 -0
- data/test/assets/inherit/IDL2.idl +18 -0
- data/test/assets/inherit/IDL3.idl +18 -0
- data/test/assets/inherit/IDL4.idl +17 -0
- data/test/assets/inherit/diamond_inheritance.idl +31 -0
- data/test/assets/inherit/inherit.idl +27 -0
- data/test/assets/limit/longidentifiers.idl +25 -0
- data/test/assets/limit/namelens.idl +26 -0
- data/test/assets/limit/tpztest.idl +21 -0
- data/test/assets/module/module1.idl +29 -0
- data/test/assets/module/module2.idl +34 -0
- data/test/assets/module/module3.idl +20 -0
- data/test/assets/module/module4.idl +15 -0
- data/test/assets/nested/nested1.idl +5 -0
- data/test/assets/nested/nested2.idl +11 -0
- data/test/assets/operations/Benchmark.idl +331 -0
- data/test/assets/operations/CCS.idl +82 -0
- data/test/assets/operations/TestIntf.idl +40 -0
- data/test/assets/operations/TestIntfBasic.idl +653 -0
- data/test/assets/operations/atomic.idl +40 -0
- data/test/assets/operations/dif2.idl +48 -0
- data/test/assets/operations/interface1.idl +16 -0
- data/test/assets/operations/parameters.idl +111 -0
- data/test/assets/operations/perf.idl +84 -0
- data/test/assets/operations/timer.idl +104 -0
- data/test/assets/preprocess/base_for_diamond_inheritance_with_macros.idl +17 -0
- data/test/assets/preprocess/basic_macro_marshalling.idl +54 -0
- data/test/assets/preprocess/diamond_inheritance_with_macros.idl +74 -0
- data/test/assets/preprocess/macro1.idl +52 -0
- data/test/assets/preprocess/preprocess1.idl +246 -0
- data/test/assets/preprocess/preprocess2.idl +3 -0
- data/test/assets/recursion/loop.idl +28 -0
- data/test/assets/recursion/recursion1.idl +47 -0
- data/test/assets/recursion/recursion2.idl +74 -0
- data/test/assets/scenarios/filestat.idl +69 -0
- data/test/assets/scenarios/gateway.idl +176 -0
- data/test/assets/scenarios/library.idl +20 -0
- data/test/assets/scenarios/phone.idl +24 -0
- data/test/assets/scenarios/ticketservice.idl +118 -0
- data/test/assets/scope/scope01.idl +58 -0
- data/test/assets/scope/scope02.idl +25 -0
- data/test/assets/scope/scope03.idl +22 -0
- data/test/assets/scope/scope04.idl +27 -0
- data/test/assets/scope/scope05.idl +30 -0
- data/test/assets/scope/scope06.idl +51 -0
- data/test/assets/scope/scope07.idl +20 -0
- data/test/assets/scope/scope08.idl +88 -0
- data/test/assets/scope/scope09.idl +21 -0
- data/test/assets/scope/scope10.idl +95 -0
- data/test/assets/scope/scope11.idl +62 -0
- data/test/assets/scope/scope12.idl +117 -0
- data/test/assets/scope/scope13.idl +117 -0
- data/test/assets/scope/scope14.idl +117 -0
- data/test/assets/scope/scope15.idl +117 -0
- data/test/assets/scope/scope16.idl +117 -0
- data/test/assets/scope/scope17.idl +117 -0
- data/test/assets/scope/scope18.idl +117 -0
- data/test/assets/scope/scope19.idl +117 -0
- data/test/assets/scope/scope20.idl +215 -0
- data/test/assets/scope/scope21.idl +215 -0
- data/test/assets/scope/scope22.idl +205 -0
- data/test/assets/scope/scope23.idl +261 -0
- data/test/assets/scope/scope24.idl +376 -0
- data/test/assets/scope/scope25.idl +266 -0
- data/test/assets/scope/scope26.idl +180 -0
- data/test/assets/scope/scope27.idl +184 -0
- data/test/assets/scope/scope28.idl +182 -0
- data/test/assets/scope/scope29.idl +182 -0
- data/test/assets/scope/scope30.idl +40 -0
- data/test/assets/scope/scope31.idl +33 -0
- data/test/assets/scope/scope32.idl +37 -0
- data/test/assets/scope/scope33.idl +50 -0
- data/test/assets/scope/scope34.idl +97 -0
- data/test/assets/scope/scope35.idl +72 -0
- data/test/assets/scope/scope36.idl +167 -0
- data/test/assets/scope/scope37.idl +57 -0
- data/test/assets/scope/scope38.idl +38 -0
- data/test/assets/scope/scope39.idl +38 -0
- data/test/assets/scope/scope40.idl +38 -0
- data/test/assets/scope/scope41.idl +24 -0
- data/test/assets/scope/scope42.idl +64 -0
- data/test/assets/scope/scope43.idl +66 -0
- data/test/assets/scope/scope44.idl +52 -0
- data/test/assets/sequence/sequence1.idl +24 -0
- data/test/assets/sequence/sequence2.idl +9 -0
- data/test/assets/simple/basictypes1.idl +80 -0
- data/test/assets/simple/basictypes2.idl +197 -0
- data/test/assets/simple/basictypes3.idl +23 -0
- data/test/assets/simple/basictypes4.idl +73 -0
- data/test/assets/simple/basictypes5.idl +29 -0
- data/test/assets/simple/basictypes6.idl +63 -0
- data/test/assets/simple/simple1.idl +45 -0
- data/test/assets/simple/simple2.idl +61 -0
- data/test/assets/simple/simple3.idl +36 -0
- data/test/assets/string/string1.idl +11 -0
- data/test/assets/string/string2.idl +29 -0
- data/test/assets/struct/struct1.idl +20 -0
- data/test/assets/struct/struct2.idl +21 -0
- data/test/assets/struct/struct3.idl +42 -0
- data/test/assets/struct/struct4.idl +57 -0
- data/test/assets/struct/struct5.idl +71 -0
- data/test/assets/typecode/orb.idl +0 -0
- data/test/assets/typecode/pseudo.idl +25 -0
- data/test/assets/typedef/shorthand_typedef_struct_insideIF.idl +17 -0
- data/test/assets/typedef/shorthand_typedef_struct_insideIF_noMO.idl +16 -0
- data/test/assets/typedef/shorthand_typedef_struct_insideMO.idl +17 -0
- data/test/assets/typedef/shorthand_typedef_struct_outsideMO.idl +17 -0
- data/test/assets/typedef/typedef1.idl +8 -0
- data/test/assets/typedef/typedef2.idl +22 -0
- data/test/assets/typedef/typedef_struct_insideIF.idl +18 -0
- data/test/assets/typedef/typedef_struct_insideMO.idl +18 -0
- data/test/assets/typedef/typedef_struct_outsideMO.idl +18 -0
- data/test/assets/union/union1.idl +31 -0
- data/test/assets/union/union2.idl +22 -0
- data/test/assets/union/union3.idl +26 -0
- data/test/conversions/test_attribute.rb +46 -0
- data/test/conversions/test_enum.rb +25 -0
- data/test/conversions/test_exception.rb +24 -0
- data/test/conversions/test_forward_declaration.rb +22 -0
- data/test/conversions/test_interface.rb +30 -0
- data/test/conversions/test_module.rb +24 -0
- data/test/conversions/test_struct.rb +25 -0
- data/test/conversions/test_typedef.rb +22 -0
- data/test/conversions/test_union.rb +27 -0
- data/test/conversions/test_value_box_dcl.rb +22 -0
- data/test/helper.rb +23 -0
- data/test/simple/test_basictypes1.rb +87 -0
- data/test/simple/test_basictypes2.rb +18 -0
- data/test/simple/test_basictypes3.rb +32 -0
- data/test/simple/test_basictypes4.rb +25 -0
- data/test/simple/test_basictypes5.rb +17 -0
- data/test/simple/test_basictypes6.rb +19 -0
- data/test/simple/test_simple1.rb +40 -0
- data/test/simple/test_simple2.rb +48 -0
- data/test/simple/test_simple3.rb +20 -0
- data/test/test_array.rb +22 -0
- data/test/test_assets.rb +33 -0
- data/test/test_complex.rb +17 -0
- data/test/test_node.rb +16 -0
- data/test/test_parser.rb +17 -0
- data/test/test_scanner.rb +234 -0
- metadata +334 -0
@@ -0,0 +1,29 @@
|
|
1
|
+
/**
|
2
|
+
* various const definitions
|
3
|
+
*/
|
4
|
+
typedef boolean BOOLEAN_type;
|
5
|
+
|
6
|
+
const long c1 = 5 + 2;
|
7
|
+
const long c2 = 7 + c1;
|
8
|
+
const string c3 = "Hallo";
|
9
|
+
const char c4 = 'S';
|
10
|
+
const float c5 = 3.14159;
|
11
|
+
const long c6 = 033;
|
12
|
+
const long c7 = 0xaA;
|
13
|
+
const BOOLEAN_type c8 = TRUE;
|
14
|
+
const unsigned long c9 = c1 + 5;
|
15
|
+
|
16
|
+
const short c10 = 10;
|
17
|
+
|
18
|
+
const unsigned long ARRAY_SIZE = 10;
|
19
|
+
typedef short ArrayShort[ARRAY_SIZE];
|
20
|
+
|
21
|
+
interface foo
|
22
|
+
{
|
23
|
+
const char c11 = '\n';
|
24
|
+
const char c12 = '\x30';
|
25
|
+
|
26
|
+
typedef string ss[ c2 ];
|
27
|
+
};
|
28
|
+
|
29
|
+
|
@@ -0,0 +1,50 @@
|
|
1
|
+
enum Measurement { FEET, METERS, FURLONGS };
|
2
|
+
const Measurement ConstEnum = FURLONGS;
|
3
|
+
|
4
|
+
const long ConstLong = -1234;
|
5
|
+
const long long ConstLongLong = ConstLong * ConstLong;
|
6
|
+
const long long ConstLongLongMin = -922337203685477580;
|
7
|
+
const long long ConstLongLongMax = 922337203685477580;
|
8
|
+
const unsigned long ConstULong = (5432 + ConstLong) * 100 % 124;
|
9
|
+
const unsigned long long ConstULongLong = ConstULong + (ConstULong << 20);
|
10
|
+
|
11
|
+
const unsigned long long ConstULongLongMax = 18446744073709551615;
|
12
|
+
const unsigned long long ConstULongLongMax = 9223372036854775807;
|
13
|
+
const double ConstDouble = 50.23 - 1532.718 * 0.029;
|
14
|
+
const float ConstFloat = ConstDouble * 1.11;
|
15
|
+
const short ConstShort = -23 % 10;
|
16
|
+
const boolean ConstBoolean = TRUE;
|
17
|
+
const octet ConstOctet = 254;
|
18
|
+
const string ConstString = "This is ConstString";
|
19
|
+
const string ConstEmptyString = "";
|
20
|
+
|
21
|
+
const wstring ConstWString = L"This is ConstWString";
|
22
|
+
const wstring ConstEmptyWString = L"";
|
23
|
+
|
24
|
+
module TestConstModule
|
25
|
+
{
|
26
|
+
const long ConstLong = 12345678;
|
27
|
+
const boolean ConstBoolean = FALSE;
|
28
|
+
const string ConstString = "This is ConstString in a module";
|
29
|
+
const double ConstDouble = ::ConstDouble / 2.0;
|
30
|
+
const wstring ConstWString = L"This is ConstWString in a module";
|
31
|
+
|
32
|
+
const Measurement ConstEnum = METERS;
|
33
|
+
};
|
34
|
+
|
35
|
+
interface TestConstInterface
|
36
|
+
{
|
37
|
+
const long ConstLong = (0xf | 0xf000) & 0xfffe;
|
38
|
+
const unsigned long ConstULong = 0xFFFFFFFF;
|
39
|
+
const char ConstChar0 = '\000';
|
40
|
+
const char ConstChar1 = 'c';
|
41
|
+
const char ConstChar2 = '\n';
|
42
|
+
const char ConstChar3 = '\377';
|
43
|
+
const char ConstChar4 = '\x88';
|
44
|
+
const char ConstChar5 = '\'';
|
45
|
+
|
46
|
+
const wchar ConstWChar = L'Z';
|
47
|
+
const string ConstString = "\n\t\v\b\r\f\a\\\?\'\"\xff\377\7";
|
48
|
+
const wstring ConstWString = L"\n\t\v\b\r\f\a\\\?\'\"\xff\377\7";
|
49
|
+
const Measurement ConstEnum = FEET;
|
50
|
+
};
|
@@ -0,0 +1,21 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
const string Apple = "abcdefghijklmnopqrstuvwxyz";
|
4
|
+
const string Banana = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
5
|
+
const string Carrots = "0123456789";
|
6
|
+
const string Lemon = "!#$%&()*+,-./:;<;>@[]^ _`{|}~";
|
7
|
+
|
8
|
+
const string BlackCherry = "\n\t\v\b\r\f\a\\\?\'\"";
|
9
|
+
const string Starfruit = "\001\74\321\377";
|
10
|
+
|
11
|
+
const string PassionFruit = "\x1\xA\xe\x32\xAf\xff";
|
12
|
+
|
13
|
+
const string Orange = "abcdefghijk"
|
14
|
+
"lmnopqrstuvwxyz";
|
15
|
+
|
16
|
+
const string Dates = "\xA" "B";
|
17
|
+
|
18
|
+
interface idlServer{
|
19
|
+
|
20
|
+
void Pumpkin();
|
21
|
+
};
|
@@ -0,0 +1,65 @@
|
|
1
|
+
|
2
|
+
const float Apple = .2;
|
3
|
+
const float Banana = .2E3;
|
4
|
+
const float Carrots = .2E3;
|
5
|
+
const float Lemon = .2E+3;
|
6
|
+
const float BlackCherry = .2E+3;
|
7
|
+
const float Starfruit = .2E-3;
|
8
|
+
const float Rhubarb = .2E-3;
|
9
|
+
const float PassionFruit = 1E3;
|
10
|
+
const float Pumpkin = 1E3;
|
11
|
+
const float Mango = 1E+3;
|
12
|
+
const float WaterMelon = 1E+3;
|
13
|
+
const float Lime = 1E-3;
|
14
|
+
const float Dates = 1E-3;
|
15
|
+
const float Coconut = 1.;
|
16
|
+
const float Lychees = 1.E3;
|
17
|
+
const float Cabbage = 1.E3;
|
18
|
+
const float Cucumber = 1.E+3;
|
19
|
+
const float Ginger = 1.E+3;
|
20
|
+
const float Apricots = 1.E-3;
|
21
|
+
const float BlackEyedBeans = 1.E-3;
|
22
|
+
const float Leek = 1.2;
|
23
|
+
const float Mint = 1.2E3;
|
24
|
+
const float GardenPeas = 1.2E3;
|
25
|
+
const float Asparagus = 1.2E+3;
|
26
|
+
const float GaliaMelon = 1.2E+3;
|
27
|
+
const float Sultana = 1.2E-3;
|
28
|
+
const float Turnip = 1.2E-3;
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
const double Orange = .2;
|
33
|
+
const double LoganBerry = .2E3;
|
34
|
+
const double Parsnip = .2E3;
|
35
|
+
const double Celery = .2E+3;
|
36
|
+
const double WhiteCabbage = .2E+3;
|
37
|
+
const double Aniseed = .2E-3;
|
38
|
+
const double Bayleaf = .2E-3;
|
39
|
+
const double Dill = 1E3;
|
40
|
+
const double Oregano = 1E3;
|
41
|
+
const double Beansprout = 1E+3;
|
42
|
+
const double Almonds = 1E+3;
|
43
|
+
const double Guava = 1E-3;
|
44
|
+
const double Mushroom = 1E-3;
|
45
|
+
const double Runnerbean = 1.;
|
46
|
+
const double Tofu = 1.E3;
|
47
|
+
const double Prunes = 1.E3;
|
48
|
+
const double Brocoli = 1.E+3;
|
49
|
+
const double GrannySmith = 1.E+3;
|
50
|
+
const double BrazilNut = 1.E-3;
|
51
|
+
const double SweetPotato = 1.E-3;
|
52
|
+
const double Onion = 1.2 ;
|
53
|
+
const double Tangarine = 1.2E3;
|
54
|
+
const double Billberries = 1.2E3;
|
55
|
+
const double CantelopeMelon = 1.2E+3;
|
56
|
+
const double LolloRossa = 1.2E+3;
|
57
|
+
const double RowanBerry = 1.2E-3;
|
58
|
+
const double Sweetcorn = 1.2E-3;
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
interface idlServer{
|
63
|
+
|
64
|
+
void Plum();
|
65
|
+
};
|
@@ -0,0 +1,144 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
// lower case letters
|
4
|
+
|
5
|
+
const char Apple='a';
|
6
|
+
const char Lemon='b';
|
7
|
+
const char BlackCherry='c';
|
8
|
+
const char Lychees='d';
|
9
|
+
const char LoganBerry='e';
|
10
|
+
const char Parsnip='f';
|
11
|
+
const char Celery='g';
|
12
|
+
const char WhiteCabbage='h';
|
13
|
+
const char Aniseed='i';
|
14
|
+
const char Bayleaf='j';
|
15
|
+
const char Dill='k';
|
16
|
+
const char Oregano='l';
|
17
|
+
const char Beansprout='m';
|
18
|
+
const char Almonds='n';
|
19
|
+
const char Guava='o';
|
20
|
+
const char Mushroom='p';
|
21
|
+
const char Runnerbean='q';
|
22
|
+
const char Tofu='r';
|
23
|
+
const char Prunes='s';
|
24
|
+
const char Brocoli='t';
|
25
|
+
const char GrannySmith='u';
|
26
|
+
const char BrazilNut='v';
|
27
|
+
const char SweetPotato='w';
|
28
|
+
const char Tangarine='x';
|
29
|
+
const char Billberries='y';
|
30
|
+
const char CantelopeMelon='z';
|
31
|
+
|
32
|
+
// upper case letters
|
33
|
+
|
34
|
+
|
35
|
+
const char LolloRossa='A';
|
36
|
+
const char RowanBerry='B';
|
37
|
+
const char Sweetcorn='C';
|
38
|
+
const char Onion='D';
|
39
|
+
const char Shallots='E';
|
40
|
+
const char Plum='F';
|
41
|
+
const char KidneyBean='G';
|
42
|
+
const char Zucchini='H';
|
43
|
+
const char ButterBean='I';
|
44
|
+
const char Avocado='J';
|
45
|
+
const char GoldenDelicous='K';
|
46
|
+
const char Lentil='L';
|
47
|
+
const char Fig='M';
|
48
|
+
const char CrabApple='N';
|
49
|
+
const char RedOnion='O';
|
50
|
+
const char HazelNut='P';
|
51
|
+
const char Cinnamon='Q';
|
52
|
+
const char GooseBerry='R';
|
53
|
+
const char EggPlant='S';
|
54
|
+
const char JuniperBerries='T';
|
55
|
+
const char Cloves='U';
|
56
|
+
const char Daikan='V';
|
57
|
+
const char Mustard='W';
|
58
|
+
const char Strawberry='X';
|
59
|
+
const char BreadFruit='Y';
|
60
|
+
const char Thyme='Z';
|
61
|
+
|
62
|
+
// digits
|
63
|
+
|
64
|
+
const char Sweedes='0';
|
65
|
+
const char Pomegranate='1';
|
66
|
+
const char Tarragon='2';
|
67
|
+
const char Lettuce='3';
|
68
|
+
const char Mangetout='4';
|
69
|
+
const char Cress='5';
|
70
|
+
const char BambooShoot='6';
|
71
|
+
const char Cassava='7';
|
72
|
+
const char Melon='8';
|
73
|
+
const char RedGrapes='9';
|
74
|
+
|
75
|
+
// graphic characters
|
76
|
+
|
77
|
+
const char BeechNut=' ';
|
78
|
+
const char Elderberry='!';
|
79
|
+
const char Kumquats='#';
|
80
|
+
const char Walnuts='$';
|
81
|
+
const char Fennell='%';
|
82
|
+
const char Uglifruit='&';
|
83
|
+
const char Waterchestnut='(';
|
84
|
+
const char Chickpea=')';
|
85
|
+
const char Beetroot='*';
|
86
|
+
const char Okra='+';
|
87
|
+
const char Plantain=',';
|
88
|
+
const char Blackcurrant='-';
|
89
|
+
const char Pineapple='.';
|
90
|
+
const char LimaBean='/';
|
91
|
+
const char Mangosteen=':';
|
92
|
+
const char Pear=';';
|
93
|
+
const char RedPepper='<';
|
94
|
+
const char BeefTomatoes='=';
|
95
|
+
const char FrenchBeans='>';
|
96
|
+
const char Sharanfruit='@';
|
97
|
+
const char Radish='[';
|
98
|
+
const char Cherry=']';
|
99
|
+
const char Papaya='^';
|
100
|
+
const char Peppercorn='_';
|
101
|
+
const char Susander='`';
|
102
|
+
const char Raspberry='{';
|
103
|
+
const char Grapefruit='|';
|
104
|
+
const char PepinoMelon='}';
|
105
|
+
const char Damsons='~';
|
106
|
+
|
107
|
+
// escape sequences
|
108
|
+
|
109
|
+
const char Peanutsquash='\n';
|
110
|
+
const char CherryTomatoes='\t';
|
111
|
+
const char Artichokes='\v';
|
112
|
+
const char GreenGrapes='\b';
|
113
|
+
const char Rasin='\r';
|
114
|
+
const char CookingApple='\f';
|
115
|
+
const char Chives='\a';
|
116
|
+
const char Mullberry='\\';
|
117
|
+
const char Eddo='\?';
|
118
|
+
const char Yam='\'';
|
119
|
+
const char GreenChilly='\"';
|
120
|
+
|
121
|
+
|
122
|
+
// octal escape sequences
|
123
|
+
|
124
|
+
const char Corn='\000';
|
125
|
+
const char Peach='\7';
|
126
|
+
const char Squash='4';
|
127
|
+
const char Parsley='\321';
|
128
|
+
const char YellowPepper='\377';
|
129
|
+
|
130
|
+
// hex escape sequences
|
131
|
+
|
132
|
+
const char Satsuma='\x0';
|
133
|
+
const char Peanuts='\xA';
|
134
|
+
const char Basil='\xe';
|
135
|
+
const char CoxPippin='\x32';
|
136
|
+
const char Blueberry='\xAf';
|
137
|
+
const char Blackberry='\xff';
|
138
|
+
|
139
|
+
|
140
|
+
interface idlServer{
|
141
|
+
|
142
|
+
void Chervil();
|
143
|
+
};
|
144
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
|
2
|
+
// test integer literals base 10
|
3
|
+
|
4
|
+
const long Apple=0;
|
5
|
+
const short Banana=253;
|
6
|
+
const long Carrots=94873;
|
7
|
+
const unsigned long Lemon=4294967295;
|
8
|
+
|
9
|
+
// test integer literals base 8
|
10
|
+
|
11
|
+
const long BlackCherry=000;
|
12
|
+
const long Starfruit=012;
|
13
|
+
const long PassionFruit=01234567;
|
14
|
+
const unsigned long Orange=037777777777;
|
15
|
+
|
16
|
+
|
17
|
+
// test integer literals base 16
|
18
|
+
|
19
|
+
const long Dates=0X12345;
|
20
|
+
const long Pumpkin=0xabcdef;
|
21
|
+
const long Mango=0xABCDEF;
|
22
|
+
const long WaterMelon=0XF43e2;
|
23
|
+
const long Lime=0x1E0ab;
|
24
|
+
const unsigned long Coconut=0XFFFFFFFF;
|
25
|
+
|
26
|
+
interface idlServer{
|
27
|
+
|
28
|
+
void Lychees();
|
29
|
+
};
|
30
|
+
|
@@ -0,0 +1,69 @@
|
|
1
|
+
module ORBTest_Exceptions
|
2
|
+
{
|
3
|
+
interface Intf
|
4
|
+
{
|
5
|
+
void
|
6
|
+
op_UNKNOWN_Ex();
|
7
|
+
|
8
|
+
void
|
9
|
+
op_BAD_PARAM_Ex();
|
10
|
+
|
11
|
+
void
|
12
|
+
op_NO_MEMORY_Ex();
|
13
|
+
|
14
|
+
void
|
15
|
+
op_IMP_LIMIT_Ex();
|
16
|
+
|
17
|
+
void
|
18
|
+
op_COMM_FAILURE_Ex();
|
19
|
+
|
20
|
+
void
|
21
|
+
op_INV_OBJREF_Ex();
|
22
|
+
|
23
|
+
void
|
24
|
+
op_NO_PERMISSION_Ex();
|
25
|
+
|
26
|
+
void
|
27
|
+
op_INTERNAL_Ex();
|
28
|
+
|
29
|
+
void
|
30
|
+
op_MARSHAL_Ex();
|
31
|
+
|
32
|
+
void
|
33
|
+
op_INITIALIZE_Ex();
|
34
|
+
|
35
|
+
void
|
36
|
+
op_NO_IMPLEMENT_Ex();
|
37
|
+
|
38
|
+
void
|
39
|
+
op_BAD_TYPECODE_Ex();
|
40
|
+
|
41
|
+
void
|
42
|
+
op_BAD_OPERATION_Ex();
|
43
|
+
|
44
|
+
void
|
45
|
+
op_NO_RESOURCES_Ex();
|
46
|
+
|
47
|
+
void
|
48
|
+
op_NO_RESPONSE_Ex();
|
49
|
+
|
50
|
+
void
|
51
|
+
op_BAD_INV_ORDER_Ex();
|
52
|
+
|
53
|
+
void
|
54
|
+
op_TRANSIENT_Ex();
|
55
|
+
|
56
|
+
void
|
57
|
+
op_OBJ_ADAPTER_Ex();
|
58
|
+
|
59
|
+
void
|
60
|
+
op_DATA_CONVERSION_Ex();
|
61
|
+
|
62
|
+
void
|
63
|
+
op_OBJECT_NOT_EXIST_Ex();
|
64
|
+
|
65
|
+
void
|
66
|
+
op_INV_POLICY_Ex();
|
67
|
+
};
|
68
|
+
|
69
|
+
}; // module ORBTest_Exceptions
|
@@ -0,0 +1,34 @@
|
|
1
|
+
module ORBTest_ExceptionsExt_2_0
|
2
|
+
{
|
3
|
+
|
4
|
+
interface Intf
|
5
|
+
{
|
6
|
+
void
|
7
|
+
op_PERSIST_STORE_Ex();
|
8
|
+
|
9
|
+
void
|
10
|
+
op_FREE_MEM_Ex();
|
11
|
+
|
12
|
+
void
|
13
|
+
op_INV_IDENT_Ex();
|
14
|
+
|
15
|
+
void
|
16
|
+
op_INV_FLAG_Ex();
|
17
|
+
|
18
|
+
void
|
19
|
+
op_INTF_REPOS_Ex();
|
20
|
+
|
21
|
+
void
|
22
|
+
op_BAD_CONTEXT_Ex();
|
23
|
+
|
24
|
+
void
|
25
|
+
op_TRANSACTION_REQUIRED_Ex();
|
26
|
+
|
27
|
+
void
|
28
|
+
op_TRANSACTION_ROLLEDBACK_Ex();
|
29
|
+
|
30
|
+
void
|
31
|
+
op_INVALID_TRANSACTION_Ex();
|
32
|
+
};
|
33
|
+
|
34
|
+
}; // module ORBTest_ExceptionsExt_2_0
|