aaronp-zomg 1.0.2.20080827232412 → 1.0.2.20080828210656
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/zomg/idl/visitors/ruby_sexp.rb +3 -3
- data/zomg.gemspec +38 -0
- metadata +3 -2
@@ -63,11 +63,11 @@ module ZOMG
|
|
63
63
|
def visit_Attribute(o)
|
64
64
|
attributes = []
|
65
65
|
o.children.each { |name|
|
66
|
-
name = name.accept(self)
|
66
|
+
name = name.accept(self).to_s
|
67
67
|
|
68
68
|
# Reader
|
69
69
|
attributes <<
|
70
|
-
[:defn, :"get#{name
|
70
|
+
[:defn, :"get#{classify(name)}",
|
71
71
|
[:scope, [:block, [:args],
|
72
72
|
[:fcall, :raise, [:array,
|
73
73
|
[:call, [:const, :NotImplementedError], :new]]
|
@@ -76,7 +76,7 @@ module ZOMG
|
|
76
76
|
]
|
77
77
|
unless o.readonly
|
78
78
|
attributes <<
|
79
|
-
[:defn, :"set#{name
|
79
|
+
[:defn, :"set#{classify(name)}",
|
80
80
|
[:scope, [:block, [:args, :_],
|
81
81
|
[:fcall, :raise, [:array,
|
82
82
|
[:call, [:const, :NotImplementedError], :new]]
|
data/zomg.gemspec
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = %q{zomg}
|
3
|
+
s.version = "1.0.2.20080828210656"
|
4
|
+
|
5
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
6
|
+
s.authors = ["Aaron Patterson"]
|
7
|
+
s.date = %q{2008-08-28}
|
8
|
+
s.default_executable = %q{omfg}
|
9
|
+
s.description = %q{ZOMG is an OMG IDL parser. ZOMG will generate a Ruby AST from an IDL AST, and will even generate ruby (by means of Ruby2Ruby). == FEATURES/PROBLEMS: * Parses IDL, generates Ruby * Ships with OMFG the Object Management File Generator * Ignores nested structs/unions * Treats out/inout parameters are DIY == SYNOPSIS: In code: ZOMG::IDL.parse(File.read(ARGV[0])).to_ruby Command line: $ omfg lol.idl > roflmao.rb}
|
10
|
+
s.email = ["aaronp@rubyforge.org"]
|
11
|
+
s.executables = ["omfg"]
|
12
|
+
s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
|
13
|
+
s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "bin/omfg", "lib/scanner.rex", "lib/yacc.y", "lib/zomg.rb", "lib/zomg/idl.rb", "lib/zomg/idl/lexer.rb", "lib/zomg/idl/nodes/attribute.rb", "lib/zomg/idl/nodes/binary.rb", "lib/zomg/idl/nodes/constant.rb", "lib/zomg/idl/nodes/interface.rb", "lib/zomg/idl/nodes/interface_header.rb", "lib/zomg/idl/nodes/member.rb", "lib/zomg/idl/nodes/node.rb", "lib/zomg/idl/nodes/operation.rb", "lib/zomg/idl/nodes/parameter.rb", "lib/zomg/idl/nodes/typedef.rb", "lib/zomg/idl/nodes/union.rb", "lib/zomg/idl/parser.rb", "lib/zomg/idl/scanner.rb", "lib/zomg/idl/visitable.rb", "lib/zomg/idl/visitors/duhr.rb", "lib/zomg/idl/visitors/ruby_sexp.rb", "lib/zomg/idl/visitors/sexp.rb", "lib/zomg/version.rb", "test/assets/array/array1.idl", "test/assets/array/array2.idl", "test/assets/array/array3.idl", "test/assets/array/array4.idl", "test/assets/array/array5.idl", "test/assets/attribute/grid_0attribs_2methods.idl", "test/assets/attribute/grid_1ROattribs_1attribs_0methods.idl", "test/assets/attribute/grid_1ROattribs_1attribs_1methods.idl", "test/assets/attribute/grid_1ROattribs_1attribs_2methods.idl", "test/assets/attribute/grid_1ROattribs_1methods.idl", "test/assets/attribute/grid_1ROattribs_2methods.idl", "test/assets/attribute/grid_1attribs_1methods.idl", "test/assets/attribute/grid_1attribs_2methods.idl", "test/assets/attribute/grid_2ROattribs_0methods.idl", "test/assets/attribute/grid_2ROattribs_1methods.idl", "test/assets/attribute/grid_2ROattribs_2methods.idl", "test/assets/attribute/grid_2attribs_0methods.idl", "test/assets/attribute/grid_2attribs_1methods.idl", "test/assets/attribute/grid_2attribs_2methods.idl", "test/assets/comment/c_style_comments.idl", "test/assets/comment/comment1.idl", "test/assets/comment/cpp_style_comments.idl", "test/assets/comment/shortform.idl", "test/assets/complex/TestCodeSets.idl", "test/assets/complex/TestIntfContext.idl", "test/assets/complex/TestIntfLongLong.idl", "test/assets/complex/TestIntfWChar.idl", "test/assets/complex/any1.idl", "test/assets/complex/complex1.idl", "test/assets/complex/complex2.idl", "test/assets/complex/complex3.idl", "test/assets/complex/complex4.idl", "test/assets/complex/interop_wchar.idl", "test/assets/constant/constant1.idl", "test/assets/constant/constant2.idl", "test/assets/constant/constant3.idl", "test/assets/constant/constant4.idl", "test/assets/constant/constant5.idl", "test/assets/constant/constant6.idl", "test/assets/constant/constant7.idl", "test/assets/enum/enum1.idl", "test/assets/exception/TestIntfExceptions.idl", "test/assets/exception/TestIntfExceptionsExt_2_0.idl", "test/assets/exception/TestIntfExceptionsExt_2_3.idl", "test/assets/exception/ex1.idl", "test/assets/exception/ex2.idl", "test/assets/exception/ex3.idl", "test/assets/exception/ex4.idl", "test/assets/exception/sc.idl", "test/assets/exception/simple1.idl", "test/assets/exception/simple2.idl", "test/assets/factory/factory1.idl", "test/assets/factory/objref.idl", "test/assets/forward/forward.idl", "test/assets/forward/forward1.idl", "test/assets/forward/fwd_incl1.idl", "test/assets/forward/fwd_incl2.idl", "test/assets/include/a.idl", "test/assets/include/b.idl", "test/assets/include/employee.idl", "test/assets/include/include1.idl", "test/assets/include/include2.idl", "test/assets/include/manager.idl", "test/assets/include/pragma.idl", "test/assets/include/rookie.idl", "test/assets/include/rookiemanager.idl", "test/assets/include/sample.idl", "test/assets/include/sample_incl.idl", "test/assets/inherit/IDL1.idl", "test/assets/inherit/IDL2.idl", "test/assets/inherit/IDL3.idl", "test/assets/inherit/IDL4.idl", "test/assets/inherit/diamond_inheritance.idl", "test/assets/inherit/inherit.idl", "test/assets/limit/longidentifiers.idl", "test/assets/limit/namelens.idl", "test/assets/limit/tpztest.idl", "test/assets/module/module1.idl", "test/assets/module/module2.idl", "test/assets/module/module3.idl", "test/assets/module/module4.idl", "test/assets/nested/nested1.idl", "test/assets/nested/nested2.idl", "test/assets/operations/Benchmark.idl", "test/assets/operations/CCS.idl", "test/assets/operations/TestIntf.idl", "test/assets/operations/TestIntfBasic.idl", "test/assets/operations/atomic.idl", "test/assets/operations/dif2.idl", "test/assets/operations/interface1.idl", "test/assets/operations/parameters.idl", "test/assets/operations/perf.idl", "test/assets/operations/timer.idl", "test/assets/preprocess/base_for_diamond_inheritance_with_macros.idl", "test/assets/preprocess/basic_macro_marshalling.idl", "test/assets/preprocess/diamond_inheritance_with_macros.idl", "test/assets/preprocess/macro1.idl", "test/assets/preprocess/preprocess1.idl", "test/assets/preprocess/preprocess2.idl", "test/assets/recursion/loop.idl", "test/assets/recursion/recursion1.idl", "test/assets/recursion/recursion2.idl", "test/assets/scenarios/filestat.idl", "test/assets/scenarios/gateway.idl", "test/assets/scenarios/library.idl", "test/assets/scenarios/phone.idl", "test/assets/scenarios/ticketservice.idl", "test/assets/scope/scope01.idl", "test/assets/scope/scope02.idl", "test/assets/scope/scope03.idl", "test/assets/scope/scope04.idl", "test/assets/scope/scope05.idl", "test/assets/scope/scope06.idl", "test/assets/scope/scope07.idl", "test/assets/scope/scope08.idl", "test/assets/scope/scope09.idl", "test/assets/scope/scope10.idl", "test/assets/scope/scope11.idl", "test/assets/scope/scope12.idl", "test/assets/scope/scope13.idl", "test/assets/scope/scope14.idl", "test/assets/scope/scope15.idl", "test/assets/scope/scope16.idl", "test/assets/scope/scope17.idl", "test/assets/scope/scope18.idl", "test/assets/scope/scope19.idl", "test/assets/scope/scope20.idl", "test/assets/scope/scope21.idl", "test/assets/scope/scope22.idl", "test/assets/scope/scope23.idl", "test/assets/scope/scope24.idl", "test/assets/scope/scope25.idl", "test/assets/scope/scope26.idl", "test/assets/scope/scope27.idl", "test/assets/scope/scope28.idl", "test/assets/scope/scope29.idl", "test/assets/scope/scope30.idl", "test/assets/scope/scope31.idl", "test/assets/scope/scope32.idl", "test/assets/scope/scope33.idl", "test/assets/scope/scope34.idl", "test/assets/scope/scope35.idl", "test/assets/scope/scope36.idl", "test/assets/scope/scope37.idl", "test/assets/scope/scope38.idl", "test/assets/scope/scope39.idl", "test/assets/scope/scope40.idl", "test/assets/scope/scope41.idl", "test/assets/scope/scope42.idl", "test/assets/scope/scope43.idl", "test/assets/scope/scope44.idl", "test/assets/sequence/sequence1.idl", "test/assets/sequence/sequence2.idl", "test/assets/simple/basictypes1.idl", "test/assets/simple/basictypes2.idl", "test/assets/simple/basictypes3.idl", "test/assets/simple/basictypes4.idl", "test/assets/simple/basictypes5.idl", "test/assets/simple/basictypes6.idl", "test/assets/simple/simple1.idl", "test/assets/simple/simple2.idl", "test/assets/simple/simple3.idl", "test/assets/string/string1.idl", "test/assets/string/string2.idl", "test/assets/struct/struct1.idl", "test/assets/struct/struct2.idl", "test/assets/struct/struct3.idl", "test/assets/struct/struct4.idl", "test/assets/struct/struct5.idl", "test/assets/typecode/orb.idl", "test/assets/typecode/pseudo.idl", "test/assets/typedef/shorthand_typedef_struct_insideIF.idl", "test/assets/typedef/shorthand_typedef_struct_insideIF_noMO.idl", "test/assets/typedef/shorthand_typedef_struct_insideMO.idl", "test/assets/typedef/shorthand_typedef_struct_outsideMO.idl", "test/assets/typedef/typedef1.idl", "test/assets/typedef/typedef2.idl", "test/assets/typedef/typedef_struct_insideIF.idl", "test/assets/typedef/typedef_struct_insideMO.idl", "test/assets/typedef/typedef_struct_outsideMO.idl", "test/assets/union/union1.idl", "test/assets/union/union2.idl", "test/assets/union/union3.idl", "test/conversions/test_attribute.rb", "test/conversions/test_enum.rb", "test/conversions/test_exception.rb", "test/conversions/test_forward_declaration.rb", "test/conversions/test_interface.rb", "test/conversions/test_module.rb", "test/conversions/test_struct.rb", "test/conversions/test_typedef.rb", "test/conversions/test_union.rb", "test/conversions/test_value_box_dcl.rb", "test/helper.rb", "test/simple/test_basictypes1.rb", "test/simple/test_basictypes2.rb", "test/simple/test_basictypes3.rb", "test/simple/test_basictypes4.rb", "test/simple/test_basictypes5.rb", "test/simple/test_basictypes6.rb", "test/simple/test_simple1.rb", "test/simple/test_simple2.rb", "test/simple/test_simple3.rb", "test/test_array.rb", "test/test_assets.rb", "test/test_complex.rb", "test/test_node.rb", "test/test_parser.rb", "test/test_scanner.rb", "zomg.gemspec"]
|
14
|
+
s.has_rdoc = true
|
15
|
+
s.homepage = %q{http://zomg.rubyforge.org/}
|
16
|
+
s.rdoc_options = ["--main", "README.txt"]
|
17
|
+
s.require_paths = ["lib"]
|
18
|
+
s.rubyforge_project = %q{zomg}
|
19
|
+
s.rubygems_version = %q{1.2.0}
|
20
|
+
s.summary = %q{ZOMG is an OMG IDL parser}
|
21
|
+
s.test_files = ["test/conversions/test_attribute.rb", "test/conversions/test_enum.rb", "test/conversions/test_exception.rb", "test/conversions/test_forward_declaration.rb", "test/conversions/test_interface.rb", "test/conversions/test_module.rb", "test/conversions/test_struct.rb", "test/conversions/test_typedef.rb", "test/conversions/test_union.rb", "test/conversions/test_value_box_dcl.rb", "test/simple/test_basictypes1.rb", "test/simple/test_basictypes2.rb", "test/simple/test_basictypes3.rb", "test/simple/test_basictypes4.rb", "test/simple/test_basictypes5.rb", "test/simple/test_basictypes6.rb", "test/simple/test_simple1.rb", "test/simple/test_simple2.rb", "test/simple/test_simple3.rb", "test/test_array.rb", "test/test_assets.rb", "test/test_complex.rb", "test/test_node.rb", "test/test_parser.rb", "test/test_scanner.rb"]
|
22
|
+
|
23
|
+
if s.respond_to? :specification_version then
|
24
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
25
|
+
s.specification_version = 2
|
26
|
+
|
27
|
+
if current_version >= 3 then
|
28
|
+
s.add_runtime_dependency(%q<ruby2ruby>, [">= 0"])
|
29
|
+
s.add_development_dependency(%q<hoe>, [">= 1.7.0"])
|
30
|
+
else
|
31
|
+
s.add_dependency(%q<ruby2ruby>, [">= 0"])
|
32
|
+
s.add_dependency(%q<hoe>, [">= 1.7.0"])
|
33
|
+
end
|
34
|
+
else
|
35
|
+
s.add_dependency(%q<ruby2ruby>, [">= 0"])
|
36
|
+
s.add_dependency(%q<hoe>, [">= 1.7.0"])
|
37
|
+
end
|
38
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aaronp-zomg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.2.
|
4
|
+
version: 1.0.2.20080828210656
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Patterson
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-08-
|
12
|
+
date: 2008-08-28 00:00:00 -07:00
|
13
13
|
default_executable: omfg
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -279,6 +279,7 @@ files:
|
|
279
279
|
- test/test_node.rb
|
280
280
|
- test/test_parser.rb
|
281
281
|
- test/test_scanner.rb
|
282
|
+
- zomg.gemspec
|
282
283
|
has_rdoc: true
|
283
284
|
homepage: http://zomg.rubyforge.org/
|
284
285
|
post_install_message:
|